A Flutter plugin for making payments via theteller payment gateway. Fully supports Android and iOS.
To use this plugin, add
-
the_teller_checkout:
git:
url: https://github.com/mccamo51/the_teller_checkout.git -
http: ^0.13.6
-
webview_flutter: ^4.2.0
No other configuration required—the plugin works out of the box.
Example: CheckoutRequest checkout= CheckoutRequest();
Call the initRequest function and pass the required parameters
checkout.initRequest(context,
platform: 'pro',
amount: '000000000010',
apiKeys: "##############",
apiUser: "##############",
description: 'Hello',
email: 'theteller@payswitch.com.gh',
merchsntID: kmerchantId,
transactionID: '000000000052')
CheckoutRequest checkout = CheckoutRequest();
checkout.initRequest(
context,
platform: 'pro',
amount: '000000000010',
apiKeys: "##############",
apiUser: "##############",
description: 'Hello',
email: 'theteller@payswitch.com.gh',
merchsntID: kmerchantId,
transactionID: '000000000052',
);
The transaction is successful if response.status is 000. Please, see the documentation
of CheckoutResponse
for more information.
Payswitch provides tons of payment cards for testing.
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.
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.
Thanks to the authors of Thetella. I leveraged on their work to bring this plugin to fruition.