1.0.3 ā€¢ Published 7 months ago

zest-node v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

šŸš€ 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.

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago