1.0.9 • Published 4 months ago

oegpaymentgateway v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

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()
1.0.9

4 months ago

1.0.8

4 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago