co-paymill is a wrapper to use paymill-node with generators...
$ npm install co-paymill
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);
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' });
];
ISC