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.
npm install gmo
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.
In this library, we have defined as "Shop API" an API that requires shop ID and shop password to the API call.
An API that requires site ID and site password to the API call.
An API that requires shop ID, shop password, site ID and site password to the API call.
Patches contributed by those people.