gopaywin-api-client

0.2.0 • Public • Published

GoPayWin API Client for Node.js

This branch is under active development. For more information please visit: www.gopaywinpay.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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.0
    0
    • latest

Version History

Package Sidebar

Install

npm i gopaywin-api-client

Weekly Downloads

0

Version

0.2.0

License

none

Last publish

Collaborators

  • andrewcurioso
  • gopaywin
  • servel333