Skip to content

Commit bdf5018

Browse files
authored
Update razorpay.js
1 parent 3faaf99 commit bdf5018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

e2e/razorpay.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class RazorpayBeta extends Razorpay {
77
constructor(options) {
88
super(options)
99
this.api.rq = request.defaults({
10-
baseUrl: hostUrl,
10+
baseUrl: options.hostUrl,
1111
json: true,
1212
auth: {
1313
user: options.key_id,
@@ -22,4 +22,4 @@ module.exports = new RazorpayBeta({
2222
key_id: process.env.API_KEY || "",
2323
key_secret: process.env.API_SECRET || "",
2424
hostUrl : "https://api-web.dev.razorpay.in"
25-
});
25+
});

0 commit comments

Comments
 (0)