Node.js client library for the GMO Payment Platform.
JavaScript CoffeeScript
Switch branches/tags
Nothing to show
Latest commit 287be2c Sep 2, 2013 @t-k t-k fix README [ci skip]
Permalink
Failed to load latest commit information.
fixtures/hoge.mul-pay.jp:443 update Apr 19, 2013
src modify style Apr 19, 2013
test update Apr 19, 2013
.gitignore rm doc dir from repository [ci skip] Aug 31, 2013
.groc.json change groc setting Apr 19, 2013
.npmignore bump version to 0.0.2 Apr 19, 2013
.travis.yml update Apr 19, 2013
LICENSE update docs Apr 19, 2013
Makefile modify build Apr 19, 2013
README.ja.md fix README [ci skip] Sep 1, 2013
README.md fix README [ci skip] Sep 1, 2013
package.json update engines Apr 19, 2013

README.md

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.