Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including gopaywin-api-client with all npm packages installed. Try it out:

var gopaywinApiClient = require("gopaywin-api-client")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

gopaywin-api-client v0.2.0

GoPayWin API Bindings for Node.js

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

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free