node-cashfree
v1.0.2
Published
An NPM module for interacting with the cashfree API
Readme
CashFree
Npm module for CashFree
Supported Methods
authenticate, verifyToken, validateBeneficiary, addBeneficiary, getBeneficiary, getBeneficiaryId, getBeneficiaries, removeBeneficiary, requestTransfer, getBalance, listTransfers, getTransfer
Usage
const { CashFree } = require('cashfree');
const options = {
clientId: process.env['CLIENT_ID'],
clientSecret: process.env['CLIENT_SECRET'],
preHook: function(params, callback) {
console.log('request params', params);
return callback();
},
postHook: function(params, callback) {
console.log('response params', params);
return callback();
},
axiosConfig: {
// axios config
baseURL: process.env['CASHFREE_BASE_URL']
}
};
const cashFree = new CashFree(options);
