0.0.0 • Published 7 years ago

compropago-node v0.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

compropago-node NPM version Build Status Dependency Status

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