USAEpay API wrapper for Node.js, fully promisified
- Card Not Present (
transactionsAPI)- Card tokenization
- Statuses accepted:
A
- Statuses accepted:
- Sale with card token
- Statuses accepted:
A
- Statuses accepted:
- Void sale
- Statuses accepted:
A
- Statuses accepted:
- Refund amount
- Statuses accepted:
A
- Statuses accepted:
- Card tokenization
- Card Present (
paymentengineAPI)- Create a Terminal and get a pairing code from USAEPay
- Delete a Terminal
- Trigger a sale on a Terminal
- Get the status of a sale on a Terminal (See below for details)
git tag x.x.xgit push --tagsnom publish
var usaepay = require('node-usaepay');
var conf = {
key: '_your_key_',
pin: '_your_pin_'
urlsuffix: _you_url_key_,
environment: 'sandbox'
};
var USAEpay = new usaepay(conf);
See tests https://github.com/Starchup/node-usaepay/blob/master/test.js
- A sale is considered pending when the status returned is:
signature capture error,canceled,transaction canceled,transaction failed,timeout,error - A sale is considered completed when the status returned is
transaction complete - A sale is considered failed when the result code of the request is
E,D, or anything that isn't captured in the above statuses