diff --git a/test_prod/razorpay.js b/test_prod/razorpay.js new file mode 100644 index 0000000..7714458 --- /dev/null +++ b/test_prod/razorpay.js @@ -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 || "" +}); \ No newline at end of file