Node JS SDK
The Ippopay Payments plugin allows you to accept credit card, UPI, Netbanking and debit card payments via Ippopay payment gateway.
Check this link for detailed information to inteagrate Ippopay Node JS SDK: https://docs.ippopay.com/node-js-sdk
npm i node-ippopay
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',
});
ippopay_instance.createOrder({
amount: 10.00,
currency: 'INR',
payment_modes: "cc,dc,nb,upi",
customer: {
name: "Test",
email: "[email protected]",
phone: {
country_code: "91",
national_number: "9876543210"
}
}
}, function (err, data){
console.log(data);
});
ippopay_instance.orderTransactionDetails({
orderId: 'ORDER_ID'
}, function (err, data){
console.log(data);
});