paystack_manager 1.0.4 copy "paystack_manager: ^1.0.4" to clipboard
paystack_manager: ^1.0.4 copied to clipboard

A Flutter plugin for making payments via Paystack Payment Gateway. Fully supports Android and iOS.

Paystack Manager #

A Flutter plugin for making payments via Paystack Payment Gateway. Fully supports Android and iOS.

Getting Started #

For help getting started with Flutter, view our online documentation.

For help on editing plugin code, view the documentation.

Usage #

To use this package :

dependencies:
    flutter:
      sdk: flutter
    paystack_manager:

Then initialize the package whenever you need it:


    PaystackPayManager(context: context)
        ..setSecretKey("sk_test_7e3a3dbff5d7b8b2ee7e61125b503ecbba8c850f")
        //accepts widget
        ..setCompanyAssetImage(
          Image(
            image: AssetImage("assets/images/logo.png"),
          )
        )
        ..setAmount(152)
        ..setCurrency("GHS")
        ..setEmail("bakoambrose@gmail.com")
        ..setFirstName("Ambrose")
        ..setLastName("Bako")
        ..setMetadata(
          {
            "custom_fields": [
              {
                "value": "snapTask",
                "display_name": "Payment to",
                "variable_name": "payment_to"
              }
            ]
          },
        )
        ..onSuccesful(_onPaymentSuccessful)
        ..onFailed(_onPaymentFailed)
        ..onCancel(_onPaymentCancelled)
        ..initialize();

No other configuration requiredโ€”the plugin works out of the box.

๐Ÿš Testing your implementation #

Paystack provides tons of payment cards for testing.

โ–ถ๏ธ Running Example project #

For help getting started with Flutter, view the online documentation.

An example project has been provided in this plugin. Clone this repo and navigate to the example folder. Open it with a supported IDE or execute flutter run from that folder in terminal.

๐Ÿ“ Contributing, ๐Ÿ˜ž Issues and ๐Ÿ› Bug Reports #

The project is open to public contribution. Please feel very free to contribute. Experienced an issue or want to report a bug? Please, report it here. Remember to be as descriptive as possible.

๐Ÿ† Credits #

Thanks to the authors of Paystack Flutter. I leveraged on their work to bring this plugin to fruition.

63
likes
30
points
41
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin for making payments via Paystack Payment Gateway. Fully supports Android and iOS.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

dio, flutter, flutter_icons, intl, pin_code_fields, pinput, webview_flutter

More

Packages that depend on paystack_manager