0.2.0-0 • Published 6 years ago
payu-api-client v0.2.0-0
PayU API client
Integration with PayU API v2.1. Full API documentation: http://developers.payu.com/en/restapi.html
Install
npm install payu-api-clientor
yarn add payu-api-clientUsage
import { PayuApiClient } from "payu-api-client"
const payu = new PayuApiClient({
    apiRoot: "https://secure.payu.com/", // or https://secure.snd.payu.com/ for Sandbox
    clientId: "__YOUR_CLIENT_ID__",
    clientSecret: "__YOUR_CLIENT_SECRET__"
})Todo
- Add authorization flow
 - Method: create order
 - Method: transaction check
 - Method: merchant and submerchant
 - Use native Node methods and remove dependencies
 - Write unit-tests
 
Licence
MIT