co-paymill

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i co-paymill

Weekly Downloads

2

Version

1.0.2

License

ISC

Last publish

Collaborators

  • cehlen