1.0.2 • Published 10 years ago

co-paymill v1.0.2

Weekly downloads
2
License
ISC
Repository
github
Last release
10 years ago

co-paymill

co-paymill is a wrapper to use paymill-node with generators.

Installation

$ npm install co-paymill

Setup

Just use it like the paymill-node module, but instead of callbacks use generators.

var apiKey = 'abc'; // Paymill Private Key
var paymill = require('co-paymill')(apiKey);

Example

Simple client creation:

var client = yield paymill.clients.create({ email: 'test@example.com', description: 'test' });

Parallel client creation:

yield [
  paymill.clients.create({ email: 'test@example.com', description: 'test' }),
  paymill.clients.create({ email: 'foo@bar.com', description: 'foobar' });
];

License

ISC

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago