1.0.0 • Published 5 years ago

payplug-node v1.0.0

Weekly downloads
5
License
-
Repository
github
Last release
5 years ago

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 :