OnlinePay API
  1. API Reference
OnlinePay API
  • Introduction
  • How to start
  • Country Code
  • Currency Code
  • Error Code
  • API Reference
    • Credit Card
      POST
    • Alipay
      POST
    • Union Pay
      POST
    • WeChat
      POST
    • Cryptocurrency Payment
      POST
    • OnlinePay CheckOut
      POST
    • notifyUrl
      POST
    • Refund
      POST
    • Query
      POST
    • QueryOrderList
      POST
  1. API Reference

OnlinePay CheckOut

POST
https://pay.onlinepay.ai/cashier/checkStandPay
Checkout: When you initiate a payment request, you will receive a checkout URL back from OnlinePay and be redirected to that checkout URL to submit your card number and other information, finally jump to the returnUrl to synchronize your payment results.

Request

Body Params application/json

Example
{
    "merNo": 0,
    "merOrderNo": "string",
    "currencyCode": "string",
    "sourceAmount": "string",
    "returnUrl": "string",
    "notifyUrl": "string",
    "sign": "string",
    "billingFirstName": "string",
    "billingLastName": "string",
    "billingAddress1": "string",
    "billingAddress2": "string",
    "billingCity": "string",
    "billingState": "string",
    "billingCountry": "st",
    "billingZipCode": "string",
    "billingPhone": "string",
    "billingEmail": "string",
    "shippingFirstName": "string",
    "shippingLastName": "string",
    "shippingAddress1": "string",
    "shippingAddress2": "string",
    "shippingCity": "string",
    "shippingState": "string",
    "shippingCountry": "st",
    "shippingZipCode": "string",
    "shippingPhone": "string",
    "shippingEmail": "string",
    "userAgent": "string",
    "ipAddress": "string",
    "productInfoList": [
        {
            "sku": "string",
            "productName": "string",
            "price": "string",
            "quantity": "string"
        }
    ],
    "version": "string"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://pay.onlinepay.ai/cashier/checkStandPay' \
--header 'Content-Type: application/json' \
--data-raw '{
    "merNo": 0,
    "merOrderNo": "string",
    "currencyCode": "string",
    "sourceAmount": "string",
    "returnUrl": "string",
    "notifyUrl": "string",
    "sign": "string",
    "billingFirstName": "string",
    "billingLastName": "string",
    "billingAddress1": "string",
    "billingAddress2": "string",
    "billingCity": "string",
    "billingState": "string",
    "billingCountry": "st",
    "billingZipCode": "string",
    "billingPhone": "string",
    "billingEmail": "string",
    "shippingFirstName": "string",
    "shippingLastName": "string",
    "shippingAddress1": "string",
    "shippingAddress2": "string",
    "shippingCity": "string",
    "shippingState": "string",
    "shippingCountry": "st",
    "shippingZipCode": "string",
    "shippingPhone": "string",
    "shippingEmail": "string",
    "userAgent": "string",
    "ipAddress": "string",
    "productInfoList": [
        {
            "sku": "string",
            "productName": "string",
            "price": "string",
            "quantity": "string"
        }
    ],
    "version": "string"
}'

Responses

🟢200OK
application/json
Body

Example
{
    "code": "00000",
    "message": "SUCCESS",
    "data": {
        "merOrderNo": "222222",
        "payUrl": "http://abc.com/notify"
    }
}
Modified at 2023-08-04 10:04:45
Previous
Cryptocurrency Payment
Next
notifyUrl
Built with