Integrate with Other Razorpay Products

Integrate Node.js SDK with other Razorpay Products


Razorpay offers a range of

to meet your business requirements. Visit our for the sample codes.

If you are a partner and want to use the API as a particular merchant, you must authenticate your account by passing an additional header X-Razorpay-Account with the merchant account_id as the value.

var instance = new Razorpay({
key_id: '<your_partner_key>',
key_secret: '<your_partner_secret>',
headers: {
"X-Razorpay-Account": "<merchant_account_id>"
}
});
instance.orders.all().then(console.log).catch(console.error);

Is this integration guide useful?