Ippopay Node SDK
Official nodejs library for Ippopay API.
Check this link for detailed information to inteagrate Ippopay Node JS SDK: https://docs.ippopay.com/node-js-sdk
Installation
npm i node-ippopay
Documentation
Documentation of Ippopay's API is available at https://docs.ippopay.com/node-js-sdk
Basic Usage
Initiate the Ippopay instance with public_key
& secret_key
. You can get the keys from the merchant dashboard (https://app.ippopay.com/settings/api)
const Ippopay = require("node-ippopay");
var ippopay_instance = new Ippopay({
public_key: 'YOUR_PUBLIC_KEY',
secret_key: 'YOUR_SECRET_KEY',
});
Create an Order
ippopay_instance.createOrder({
amount: 10.00,
currency: 'INR',
payment_modes: "cc,dc,nb,upi",
customer: {
name: "Test",
email: "test@gmail.com",
phone: {
country_code: "91",
national_number: "9876543210"
}
},
notify_url: 'Your_WebHook_Url'
}, function (err, data){
console.log(data);
});
Get Transaction Details of Order
ippopay_instance.orderTransactionDetails({
orderId: 'ORDER_ID'
}, function (err, data){
console.log(data);
});
Author
This component is written by IppoPay.
License
IppoPay 2021 © All Rights Reserved. IppoPay