node-easy-ideal
Qantani Easy iDeal API client for Node (unofficial)
Getting Started
Install using npm
$ npm install easy-ideal
Import the library
var EasyIdeal = ;
Create an easy ideal instance.
var easyideal = merchant: id: YOUR_MERCHANT_ID key: YOUR_MERCHANT_KEY secret: YOUR_MERCHANT_SECRET ;
Acquiring a list of banks
easyideal;
Outputs:
id: 'ING' name: 'ING' id: 'RABOBANK' name: 'Rabobank' ...
You should cache this output with a TTL of 2 days.
Executing a transaction
var transaction = amount: 100 currency: 'EUR' description: 'A test transaction.' return: 'http://example.com/thanks' bank: 'ING'; easyideal;
Outputs:
transaction: id: '124' code: '12335kjhkjdg' bank_url: 'https://www.qantanipayments.com/.....'
Do not forget to store these values. You need them to respond to the Qantani callbacks. Note that EasyIdeal only supports transactions with EUR currency.
For more information, see the documentation and the Qantani implementation manual.
Documentation
This package supports jsdoc. Simply install jsdoc and run it
$ npm install -g jsdoc$ jsdoc -d docs$ open docs/index.html
License
BSD 2-clause:
Copyright (c) 2014, Jos KuijpersAll rights reserved. Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS ORSERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVERCAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.