Skip to content

Commit

Permalink
Update razorpay.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitdas13 authored Aug 1, 2023
1 parent 28c1822 commit 62f166e
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions test_prod/razorpay.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,23 @@

const Razorpay = require("../dist/razorpay");

module.exports = new Razorpay({
class RazorpayBeta extends Razorpay {
constructor(options) {
super(options)
this.api.rq = request.defaults({
baseUrl: hostUrl,
json: true,
auth: {
user: options.key_id,
pass: options.key_secret
}
})
}
}


module.exports = new RazorpayBeta({
key_id: process.env.API_KEY || "",
key_secret: process.env.API_SECRET || ""
key_secret: process.env.API_SECRET || "",
hostUrl : "https://api-web.dev.razorpay.in"
});

0 comments on commit 62f166e

Please sign in to comment.