payu-node
payu-node is a simple wrapper to use PayU APIs from within Node JS.
Installation
npm install payu
Usage
var PayU = ;var payu = merchant_id salt payu_url;
...where merchant_id
and salt
are unique to you.
payu_url
is the url to which you want to make your calls to - production or test. If not provided, it defaults to test url with json output. The hash is created internally.
API call format
Every API is of the following format:
payu;
where callback is a function with two arguments - error and response. Error has error in the http call and not PayU API errors. The response is provided as is.
Example:
var txn_id = '12345';payu;
Supported APIs
;;;;;;;;;;;;;;;;
Bugs and Issues
Please report and bugs and issues that you face. If you can fix any, please go ahead and fix and send me a pull request. Other API support will come after some time.
License
MIT