razorpay / razorpay-node

Razorpay node.js bindings
MIT License
182 stars 111 forks source link

Inclusion razorpay in my nodejs server #158

Closed subhramukherjee closed 2 years ago

subhramukherjee commented 4 years ago

You have docs of integrating nodejs-client. I want to integrate razorpay in my nodejs server. How i can do it. One more thing, that, my server is shared server, is it safe? Please suggest.. Thank you..

rajathongal commented 3 years ago

//PaymentGateway.js

const Razorpay = require('razorpay');

var razorpay = new Razorpay({
    key_id: '',
    key_secret: ''
});

module.exports = razorpay;

//anywhere you want to use const razorpay = require('fromFileLocation/PaymentGateway');

ankitdas13 commented 2 years ago

@subhramukherjee sorry for the late response. could you please let us know if this issue was fixed?

ankitdas13 commented 2 years ago

Closing this issue for now, due to not getting any response. Feel free to add more suggestions you may have. Please let us know if you need any help.