0.0.0 • Published 7 years ago
compropago-node v0.0.0
compropago-node
Installation
$ npm install --save compropago-node
Usage
// Set the compropago API Key
process.env.COMPROPAGO_API_KEY = 'your-key';
var Compropago = require('compropago-node');
// Create a charge
Compropago.Charge.create({})
.then(function (res) {
})
.catch(function (err) {
});
// Find a charge
Compropago.Charge.find(id)
.then(function (res) {
})
.catch(function (err) {
});
// Send payment instructions via sms
Compropago.Charge.createSMS({})
.then(function (res) {
})
.catch(function (err) {
});
License
MIT © colin
0.0.0
7 years ago