0 purchases
zaincash
zaincash_flutter #
A none offical Zaincash payment gateway integration for flutter
INSTALL #
in your project terminal enter
dart pub add zaincash
copied to clipboard
USE #
First you will need a transaction_id created by using your merchant credentials on backend and then forwarded over to the mobile app, if you do not have merchant credentials please contact the zaincash support to get one
Then use zaincash as a widget inside your view
ZainCash(transactionId: "61b3976de65fb79d1b5ffc3c", production: false, closeOnSuccess: true, closeOnError: true)
copied to clipboard
And you can listen to the state change events using the listener
ZaincashService.paymentStateListener.listen((state) {
/// on success
if(state['success'] == 1){
// TO DO
}
/// on error
if(state['success'] == 0){
// TO DO
}
});
copied to clipboard
SCREENSHOTS #
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.