Paynl
This is a very simple (both built, and to use) module to communicate with the PayNL API.
Installation
Super simple. Just do the following:
npm install paynl --save
Usage
Usage is pretty straight forward. There aren't that many methods, which is what makes this module so easy to use.
No handshake
If you don't need to use methods that require a handshake, you can create a new instance like so:
var pay = ; var pay = ; pay;
Handshake
If you wish to use methods that require authentication you must instantiate Paynl
with params.
AccountId and token (recommended)
You can authenticate using your API token.
var pay = ; var pay = accountId: '1234' token : '7110eda4d09e062aa5e4a390b0a572ac0d2c0220'; pay;
Username, password and companyId
It's also possible to login using your credentials.
var pay = ; var pay = username : 'YOUR_USERNAME' password : 'YOUR_PASSWORD' companyId: 'YOUR_COMPANY_ID'; pay;
API
To check out all possible API methods go to the pay.nl API docs.
Note: You can omit the ip-address. This module adds it for you.