zest-node v1.0.3
š ZestNode SDK Documentation
š Introduction
ZestNode
is a powerful SDK designed for Node.js developers looking to integrate with the Zest payment gateway. It's equipped with a suite of functionalities, making online transactions smooth and efficient.
š¦ Installation
npm install zest-node
š¬ Getting Started
First, you'll need to import and initialize the SDK.
const ZestNode = require('zest-node-sdk');
const zest = new ZestNode('YOUR_API_PUBLIC_KEY', 'YOUR_BASE_URL');
š ļø Methods
Below is a quick overview of all the methods available in the ZestNode
SDK:
1. š initializeTransaction(amount, currency, email)
- Parameters:
amount
: Transaction amount.currency
: Currency type (e.g., "NGN").email
: Customer's email address.
2. ā
verifyTransaction(ref)
- Parameters:
ref
: Transaction reference.
... And so on for the other methods
š Example
Here's a quick example of how you can use the SDK:
(async () => {
const transaction = await zest.initializeTransaction(1000, "NGN", "example@email.com");
console.log(transaction);
})();
ā ļø Error Handling
Ensure you wrap your calls in try-catch blocks, as each method is asynchronous and could throw errors.
š” Conclusion
ZestNode
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! š
Note: Be sure to replace placeholders like 'YOUR_API_PUBLIC_KEY'
and 'YOUR_BASE_URL'
with actual values before using the SDK.