Skip to content

Latest commit

 

History

History
69 lines (51 loc) · 1.52 KB

File metadata and controls

69 lines (51 loc) · 1.52 KB

GMO

NPM version Build Status Dependency Status

GMO is a Node.js client library for the GMO Payment Platform, supporting the PG Multi Payment API, exec transactions, register users, and so on.

Installation

npm install gmo

Usage

var gmo, option, shopApi;

gmo = require("gmo");

shopApi = new gmo.ShopAPI({
  host:      "hoge.mul-pay.jp",
  shop_id:   "shop_id",
  shop_pass: "shop_pass"
});

option = {
  order_id: "order_id",
  job_cd:   "AUTH",
  amount:   "100"
};

shopApi.entryTran(option, function(err, res) {
  if (err) {
    console.log(err);
  }
  if (res) {
    return console.log(res);
  }
});

More examples are available on test directory.

Shop API

In this library, we have defined as "Shop API" an API that requires shop ID and shop password to the API call.

Site API

An API that requires site ID and site password to the API call.

ShopAndSite API

An API that requires shop ID, shop password, site ID and site password to the API call.

In other languages

Contributors

Patches contributed by those people.