PayUMoney NodeJs Wrapper
The PayUMoney Node library provides convenient access to the PayUMoney API from applications written in server-side JavaScript.
Documentation
See the PayUMoney API docs.
The package needs to be configured with your account's Merchant Key, Mecrhant Salt and Authorization Key, which are available in your PayUMoney Dashboard.
Installation
Install the package with:
npm install payumoney-node --save
Include and set keys
var payumoney = ;payumoney;
Set Mode
payumoney; // production = true, test = false
APIs Available
Create new payment request
var paymentData = productinfo: "" txnid: "" amount: "" email: "" phone: "" lastname: "" firstname: "" surl: "" //"http://localhost:3000/payu/success" furl: "" //"http://localhost:3000/payu/fail"; payumoney;
Get Payment Status
payumoney
Initiate refund
payumoney;
Get refund status
payumoney;
Submit issues
You can raise an issue in this repo or mail me at pwnkumar016@gmail.com