Skip to content

cEhlen/co-paymill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published