A promise based API wrapper for mollie.com in Node
npm install node-mollie --save
A mollie live or test token.
To obtain a mollie token go to your mollie dashboard, choose website profiles under Settings. It will provide you with a live and test API key.
Their module got me annoyed so much, it always lacks most recent support (its not written as a wrapper at all) and has so many useless deps most of us do not need.
import { Client } from 'mollie'
const mollieClient = new Client('TOKEN');
mollieClient.post('customers', {
'name': 'DualDev'
}).then(res => {
console.log('created!', res);
}).catch(err => {
console.log('Whoops, something went wrong!', err);
});
This promise based API wrapper is not call-specific, allowing it to be more flexible to future API changes. The following methods are available for use.
No, this package doesn't use any dependencies besides dev-dependencies for testing and building.