Skip to content

urmil1905/the_teller_checkout

 
 

Repository files navigation

💳 theteller Checkout Plugin for Flutter

A Flutter plugin for making payments via theteller payment gateway. Fully supports Android and iOS.

🚀 Installation

To use this plugin, add

  1. the_teller_checkout:
    git:
        url: https://github.com/mccamo51/the_teller_checkout.git

  2. http: ^0.13.6

  3. webview_flutter: ^4.2.0

No other configuration required—the plugin works out of the box.

1. Create an instance of the class CheckoutRequest();

Example: CheckoutRequest checkout= CheckoutRequest();

2. ⭐ Initiate transaction

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.

🚁 Testing your implementation

Payswitch provides tons of payment cards for testing.

▶️ Running Example project

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.

📝 Contributing, 😞 Issues and 🐛 Bug Reports

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.

🏆 Credits

Thanks to the authors of Thetella. I leveraged on their work to bring this plugin to fruition.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dart 58.6%
  • Objective-C 8.1%
  • CMake 7.0%
  • Ruby 6.3%
  • Java 6.0%
  • Shell 4.8%
  • Other 9.2%