pawa_pay_flutter

Last updated:

0 purchases

pawa_pay_flutter Image
pawa_pay_flutter Images
Add to Cart

Description:

pawa pay flutter

pawa_pay_flutter #
This package allows African Flutter developers to easily add mobile money payments to their Flutter apps using PawaPay's API. Future releases will include support for more African countries.
Features #
Currently supported in Zambia:

Airtel Money Deposits
MoMo MTN Money Deposits
Zamtel Money

More countries to be added in future updates.
Getting Started #
To use this package, you need to open an account with PawaPay and obtain an API key. If you are using the testing sandbox, set debugMode to true in the Purchase constructor. Make sure to set it to false when you are releasing your app.
debugMode = true
copied to clipboard
When using debug mode, set your debug api key as a compile time variable as like shown: "--dart-define","pawa-pay-api=<APIKEY>"
Steps #

Open an account at PawaPay.
Obtain your API key from the PawaPay API documentation.
Add the package to your Flutter project.

Usage #
Here is an example of how to use the package:
import 'package:pawa_pay_flutter/pawa_pay_flutter.dart';

final Purchase purchase = Purchase(apiKey: "<API_KEY>", debugMode: true);

// Making the customer make a deposit
String purchaseStatus = await purchase.customerDeposit(
phone: '0973456049',
amount: 100.00,
);

switch (purchaseStatus) {
case 'PAYMENT_APPROVED':
print('Successful payment');
break;
case 'PAYER_LIMIT_REACHED':
print('Customer reached depositing limit');
break;
case 'PAYMENT_NOT_APPROVED':
print('Customer did not approve payment');
break;
case 'INSUFFICIENT_BALANCE':
print('Customer wallet balance isn\'t enough to make the purchase');
break;
default:
print('An error occurred');
}
copied to clipboard
Additional Information #
For more detailed information on the API, visit the PawaPay API documentation.
Contribution #
Contributions are welcome! Please fork the repository and submit a pull request. Ensure your code adheres to the existing style and includes tests where applicable.
Issues #
Report issues or request features on the GitHub issues page.
Contact #
For support or questions, you can reach out via:

Luso Software
Twitter: @Its_Kanyanta
LinkedIn: Kanyanta Makasa
GitHub: @KanyantaM

License #
This package is released under the GPL License

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.