co-paymill
v1.0.2
Published
paymill-node with generators
Downloads
9
Readme
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: '[email protected]', description: 'test' });
Parallel client creation:
yield [
paymill.clients.create({ email: '[email protected]', description: 'test' }),
paymill.clients.create({ email: '[email protected]', description: 'foobar' });
];
License
ISC