Installation
npm install node-kash
Documentation
Documentation is available at http://docs.withkash.com.
Tutorial
Note that each function call returns a promise. To charge a customer, remember that you need to follow a 2-step process: First authorize the amount, then create a transaction for the final amount you want to charge.
For authorizing an amount you want to charge:
var kash = '<Your Server Key>';kash ;
To cancel an authorized amount:
var kash = '<Your Server Key>';// Using the authorizationId collected from authorizeAmount()kash ;
To actually charge the customer:
var kash = '<Your Server Key>';// Using the authorizationId collected from authorizeAmount()kash ;
To do refunds:
var kash = '<Your Server Key>';// Using the transactionId collected from createTransaction()kash ;