Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

paymill

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

paymill

Paymill API wrapper

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

paymill-nodejs

Node.js wrapper for Paymill API/V2.x.

This module as been created as a drop in replacement for komola's paymill-node which does not support the latest features in the Paymill API/V2.1

Installation

npm install paymill

Usage

The first thing to do, is create a paymill instance using your Paymill private key and an optional apiVersion (which can be either v2 or v2.1, with the last one being the default, if the argument is omitted).

var paymill = require('paymill')('apiKey'[, 'apiVersion']);

We can now access the API using a generic pattern, and all methods takes a callback as the last argument.

paymill.{resourceName}.{method}(..., function (err, ...) {
	// ...
});

API endpoints

Plain JavaScript object, e.g. { key: 'value' } is expected as data and as the argument in all create-method

TODO

  • Add unit and integration tests
  • Add examples to show how to use the wrapper in various cases

Author

Written by Daniel Juhl. Inspiration from Ask Bjørn Hansen and komola's paymill-node.

Keywords

paymill

FAQs

Package last updated on 04 Jan 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts