zest_pay

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

zest pay

🚀 zest_pay Flutter SDK Documentation #
🌟 Introduction #
zest_pay is an SDK designed base on the api of (zestpayment.com) developers looking to integrate with the Zest payment gateway into there flutter application. It's easy to implement and you can start receieving money in few minute with zest_pay.

🔌 Installation #
flutter pub add zest_pay
copied to clipboard
##Or
Add zest_pay: 1.0.0 to your pubspec.yaml file.

💻 Getting Started #
After installation import and initialize the SDK into your main.dart file.

import 'package:zest_pay/zest_pay.dart';

void main() {
// zest_pay initialization
ZestPay.initialize(publicKey: PUBLIC_KEY);
runApp(const MyApp());
}
copied to clipboard

🛠️ Methods and Example #
Below is a quick overview of all the methods available in the zest_pay SDK:
2. ✅ initializeTransaction
// declare a global variable
final zestPay = ZestPay();

_initializeTransaction() {
zestPay
.initializeTransaction(
email: "example@gmail.com",
amount: 3000,
currency: "NGN",
)
.then((value) => print(value))
.catchError((err) => print(err));
}
copied to clipboard

Payloads:

amount: Transaction amount.
currency: Currency type (e.g., "NGN").
email: Customer's email address.



2. ✅ verifyTransaction
_verifyTransaction() {
zestPay
.verifyTransaction(tnxRef: "")
.then((value) => print(value))
.catchError((err) => print(err));
}
copied to clipboard

Parameters:

tnxRef: Transaction reference.



... [And so on for the other methods]

⚠️ Error Handling #
Ensure to always wrap your functions in try-catch or use .then method, as each method is asynchronous and could throw errors.

💡 Conclusion #
zest_pay offers an efficient interface for the Zest payment gateway, facilitating developers in their application integrations. This documentation should guide you in leveraging the SDK effectively.

🚧 Current Version #
Version: 1.0.0

💼 License #
MIT

💖 Happy Coding!</> 💖, Don't forget to give a thumb up 👍 and a follow me @whitecoode at github and on twitter

License

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

Files:

Customer Reviews

There are no reviews.