# PaytmGratify
PaytmGratify is a paytm module which helps in hassle free money transfer from Merchant Sub-Wallet to customer wallet. It's built on top of the long updated project paytmGratify.
Added features:
- Promisified the API
- Simplified library logic
- updated the API call to the most recent version
- wrote a test case to validate credentials quicky
Installation
npm install paytmgratify
Additionally, you can clone from Github:
git clone https://github.com/hay-wire/paytmgratify.git
or
git clone git@github.com:hay-wire/paytmgratify.git
Or check the project online on Github
Usage
Require the library and call gratifyCustomer() with 3 argument objects, namely - transactionDetails, merchantDetails, platformDetails. It returns a promise on which you can ride forward.
To test the application, just run the test app with your .env file containing merchant specific credentials.
- Sample Code
const gratification = ; const debug = 'paytmgratify:test'; gratification