oegpaymentgateway
v1.0.13
Published
Oeg Payment gateway.
Downloads
54
Readme
OEG Payment Gateway
Ví dụ sử dụng:
const oegPayment = new OEGPayment({
Host: "<Host>",
Secret: "<Secret>",
ServiceID: "<ServiceID>",
RerurnUrl: "http://14.225.212.81:3000",
IpnUrl: "http://14.225.212.81:3000",
})
const test = async () => {
// Gửi yêu cầu thanh toán.
const paymentRequest = await oegPayment.paymentRequest({
"TransactionCode": "OnePay1234",
"PaymentMethodID": "OnePay",
"Message": "Tuan",
"Amount": 10000,
"IPClient": "ádsadsa",
"ExtraData": ""
})
console.log(paymentRequest)
// tra cứu mã giao dịch.
const transactionStatus = await oegPayment.transactionStatus("OnePay1234")
console.log(transactionStatus)
// Lấy danh sách Phương thức thanh toán.
const listPaymentMethod = await oegPayment.listPaymentMethod()
console.log(listPaymentMethod)
}
test()