Partner Authenticationπ
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.
Example:
Copyvar instance = new Razorpay({ key_id: '
', key_secret: ' ', headers: { "X-Razorpay-Account": " " } }); instance.orders.all().then(console.log).catch(console.error);