0.2.4 • Published 4 years ago
payplug-nodejs v0.2.4
payplug-nodejs
An NodeJS API for Payplug solution : https://www.payplug.com
This module aims to implement the Curl Payplug API describe here : https://www.payplug.com/docs/api
It is used as payment solution of the StartUp Clouderial (online project management, invoices, quotation and tasks for independant workers)
Install
$ npm install payplug-nodejs
Authenticate against PayPlug API
To authenticate :
To test if authentication is successfull :
Payment
To create a payment :
To retrieve a payment :
Call this method a retrieve an existing Payment from its id
To abort a payment :
Call this method a abort an existing Payment. Payment should have been send before or retrieved with list or retrieve
To get a Payment from a Payplug payment (found in notification_url for example)
Tests
To launch the test you must first provide a tests/config.json file with you secret key. Example :