gopaywin-api-client
v0.2.0
Published
GoPayWin API Bindings for Node.js
Downloads
6
Readme
GoPayWin API Client for Node.js
This branch is under active development. For more information please visit: www.gopaywinpay.com
Installation
npm install --save gopaywin-api-client
Usage
The following call will fetch all orders for the API keys' owner. Be sure to pass configuration data as shown.
var api = require('gopaywin-api-client');
var configuration = {
"keys": {
"publishable_key" : "...",
"private_key" : "..."
},
"api_version": "0.1",
"api_host": "https://sandbox.fpa.bz/"
}
api.get("orders", configuration)
.then(function(response){
console.log(response.body.orders);
})
.catch(function(error){
console.log(error);
});