payfort_plugin 0.3.1 copy "payfort_plugin: ^0.3.1" to clipboard
payfort_plugin: ^0.3.1 copied to clipboard

PAYFORT integration became easy with flutter ,this plugin allows you to use payfort for both android and ios.

payfort_plugin #

A flutter plugin to help flutter developer to integrate with payfort SDK easily, it supports android and ios from version 12.

Getting Started #

Add this to pubspec.yaml

dependencies:
  payfort_plugin: ^0.3.1

Usage #

PayfortPlugin.getID.then((deviceID) => { //use this deviceID to  send it to your server to get YOR_MERCHANT_REF and YOUR_SDK_TOKEN
                         PayfortPlugin.performPaymentRequest(
                              'YOR_MERCHANT_REF',
                              'YOUR_SDK_TOKEN',
                              'NAME',
                              'LANGUAGE',
                              'EMAIL',
                              'AMOUNT',
                              'COMMAND',
                              'CURRENCY',
                              'MODE' // 0 for test mode and 1 for production
                               ).then((value) => {
                                // value object contains payfort response, such card number, transaction reference, ...
                                print("card number ${value?["card_number"]}")
                         })

                  });

Contributing #

We Accept the following contributions

  • Improving code documentation
  • Reporting issues
  • bug fixing

Maintainers #

Magints

12
likes
160
points
25
downloads

Publisher

unverified uploader

Weekly Downloads

PAYFORT integration became easy with flutter ,this plugin allows you to use payfort for both android and ios.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter

More

Packages that depend on payfort_plugin