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.
npm install zest-node
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');
Below is a quick overview of all the methods available in the ZestNode
SDK:
- Parameters:
amount
: Transaction amount.currency
: Currency type (e.g., "NGN").email
: Customer's email address.
- Parameters:
ref
: Transaction reference.
... [And so on for the other methods]
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);
})();
Ensure you wrap your calls in try-catch blocks, as each method is asynchronous and could throw errors.
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.
Version: 1.0.0
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.