pay2go-suite
v0.1.3
Published
pay2go nodejs api wrapper
Downloads
11
Readme
Pay2go
Usage
var pay2goSuite = require("pay2go-suite")
var pay2go = new pay2goSuite({
merchantID: "xxx",
hashKey: "xxx",
hashIV: "xxx"
});
var checkValue = pay2go.checkValue(order);
pay2go.createPayment({
amount: xxx,
currency: "twd",
}, function(err, d){
// d is something like {
// chargeId: 123456789,
// amount: 12345678,
// }
});
pay2go.verifyPayment({
chargeId: xxxxx
}, function(err, d){
// d is the payment information
});