Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
payumoney_nodejs
Advanced tools
Readme
#Quick start for PayUMoney Gateway Integration :
Steps for Installation : -
Install the package with :
npm install payumoney_nodejs --save
Set Merchent Key and Salt Key
var payUMoney = require('payumoney_nodejs');
payumoney.setProdKeys(MERCHANT_KEY, MERCHANT_SALT, PAYUMONEY_AUTHORIZATION_HEADER);
payumoney.setSandboxKeys(MERCHANT_KEY, MERCHANT_SALT, PAYUMONEY_AUTHORIZATION_HEADER);
Set Production / SandBox Mode :
payUMoney.isProdMode(true); //set false for use of sandbox mode
How to make PayUMoney request
var requestBody = {
"firstname" : "",
"lastname" : "",
"email" : "",
"phone" : 9911223344,
"amount" : 100,
"productinfo" : "",
"txnid" : "", //generate unqiue transaction Id at client/server side
"surl" : "http:localhost:8080/payment/success",
"furl" : "http:localhost:8080/payment/failure"
};
payUMoney.pay(requestBody, function(error, response) {
if (error) {
// Some error console.log(response);
} else {
// You will get a link in response to redirect to payUMoney
callback(null, { 'payulink' : response });
}
});
This API will return you PayUMoney link. You need to redirect to that link in front-end.
Parameters surl and furl must be backend API's, after paymnet success or failure, payUMoney will send POST request to these URLs with details regarding your payment.
Please refer this article for detailed integration :
https://medium.com/@swapnilnakhate/payumoney-payment-gateway-integration-with-nodejs-f715e5fc25a
You can handle db related operations (like update payment status in your database) on these API's.
Submit Issues
Email me regarding any issue me at swapnil.nakhate1010@gmail.com
FAQs
The paymoney_nodejs library written for NodeJs helps you to pay through payUMoney payment gateway integration.
The npm package payumoney_nodejs receives a total of 57 weekly downloads. As such, payumoney_nodejs popularity was classified as not popular.
We found that payumoney_nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.