Skip to content

Commit

Permalink
added beta url
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitdas13 committed Aug 1, 2023
1 parent 6e34066 commit 5170381
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test_prod/razorpay.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
'use strict';

const Razorpay = require("../dist/razorpay");
let request = require('request-promise');

class RazorpayTest extends Razorpay {
constructor(options) {
super(options)
this.api.rq = request.defaults({
baseUrl: "https://api-web.dev.razorpay.in",
json: true,
auth: {
user: options.key_id,
pass: options.key_secret
}
})
}
}


module.exports = new RazorpayTest({
key_id: process.env.API_KEY || "",
key_secret: process.env.API_SECRET || ""
});

0 comments on commit 5170381

Please sign in to comment.