Node.js
Learn how to integrate and use Node.js SDK with Pine Labs Plural APIs.
This SDK provides an easy-to-use API for integrating Pine Labs services into your Node applications. It offers convenient methods for accepting and fetching orders, calculating EMIs, and verifying hashes.
Watch this video to learn how to integrate and use Node.js SDK with Pine Labs Plural APIs.
Download the Sampleapp
You can download the Sampleapp from the GitHub Link: https://github.com/pluralonline/plural-nodejs-sdk-sampleapp.
Prerequisites
Before integrating the SDK into your Project, make sure the following requirement is met:
- NODE version 18.17.1 or higher.
- NPM version 9.6.7 or higher.
Note:
TLS 1.2 information:
- For NODE version 18.17.1 and above should have TLS version 1.2.
Installation
To install this SDK locally from your folder, run the following command. This will link and integrate the SDK into your Node.js project.
npm link "../path-to-sdk-folder"
npm install "../path-to-sdk-folder"
Implementation
- Refer to the GitHub Document>/a> for detailed instructions.
Handle Payments
To know the status of the payment you can use the below options.
- Inquiry API: Use this API to check transaction statuses.
- Webhook Notification: We send Webhook notifications on the successful payment or any changes to the payment's response object.
Updated 6 months ago