Skip to content

karrarkazuya/zaincash_flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Zaincash payment gateway integration for flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages