Skip to content
GoPayWin API bindings for Node.js
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
exceptions
test
.gitignore
LICENSE-MIT
README.md
configuration.json
index.js
package.json

README.md

GoPayWin API Client for Node.js

This branch is under active development. For more information please visit: www.gopaywin.com

@gopaywin on Twitter GoPayWin on NPM

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);
  });

Links

You can’t perform that action at this time.