1.0.2 • Published 11 years ago
co-paymill v1.0.2
co-paymill
co-paymill is a wrapper to use paymill-node with generators.
Installation
$ npm install co-paymillSetup
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