nravepay 1.0.5+1 copy "nravepay: ^1.0.5+1" to clipboard
nravepay: ^1.0.5+1 copied to clipboard

outdated

Nravepay is a package that makes accepting card payments in a flutter project easier using Flutterwave.

nravepay #

Nravepay is a package that makes accepting card payments in a flutter project easier using Flutterwave. This work is motivated and influenced by rave_flutter

Features #

  • Custom Flutter native UI
  • Save card and pay with token
  • Card payments only
  • Split payments

Initialize at Startup #

   void main(){
      NRavePayRepository.setup(
      publicKey: PaymentKeys.publicKey,
      encryptionKey: PaymentKeys.encryptionKey,
      secKey: PaymentKeys.secretKey,
      staging: true,
      version: Version.v2)
        ...//other codes
   }

Usage #

     var initializer = PayInitializer(
        amount: 450,
        email: 'email@email.com',
        txRef: 'TXREF-${DateTime.now().microsecondsSinceEpoch}',
        narration: 'New payment',
        country: 'NG',
        currency: 'NGN',
        firstname: 'Nelson',
        lastname: 'Eze',
        phoneNumber: '09092343432',
        onComplete: (result) {
          if (result.status == HttpStatus.success) {
            if (result.card != null) {
              print(result.card);
              //  saveCard(card);
            }
          }
          print(result.message);
        });
    return PayManager().prompt(context: context, initializer: initializer);
  }
  

Screenshots #

Bugs/Requests #

If you encounter any problems feel free to open an issue feature suggestions and Pull requests are also welcome.

7
likes
0
pub points
42%
popularity

Publisher

verified publishernelsoneze.com

Nravepay is a package that makes accepting card payments in a flutter project easier using Flutterwave.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

async, cupertino_icons, dio, equatable, flutter, flutter_svg, get_it, intl, tripledes_nullsafety, webview_flutter

More

Packages that depend on nravepay