zaincash 0.0.6 copy "zaincash: ^0.0.6" to clipboard
zaincash: ^0.0.6 copied to clipboard

Zaincash integration.

zaincash_flutter #

A none offical Zaincash payment gateway integration for flutter

INSTALL #

in your project terminal enter

  dart pub add zaincash

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)

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
      }
  });

SCREENSHOTS #

1 1 1 1

13
likes
105
points
35
downloads

Publisher

unverified uploader

Weekly Downloads

Zaincash integration.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-2-Clause (license)

Dependencies

flutter, http

More

Packages that depend on zaincash