OnlinePay CheckOut
POST
https://pay.onlinepay.ai/cashier/checkStandPayCheckout: 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.
请求参数
Merchant Number, Unique identifier assigned to the merchant by the onlinepay payment platform when registering with onlinepay
Merchant Order Number, Each order must be unique, and each merchant order number can only be submitted once within 1 second
Please refer to Currency Code
Total amount of the order, keep two decimals
Jump address after payment is completed,
Asynchronous notification address to notify the merchant of the final payment result
signature, MD5(merNo+merOrderNo+currencyCode+sourceAmount+PrivateKey)
First Name
Last name
billing address 1
billing address 2
City of residence (bill)
State Name (Bill)
International ISO country abbreviation, Refer to the Country Code
Postal Code
billing phone
billing email
Consignee’s first name, Virtual goods do not need to be filled in, physical goods are required
Consignee’s last name, UnionPay Can,WeChat,AliPay be empty, Virtual goods do not need to be filled in, physical goods are required
Receiving address details 1, Virtual goods do not need to be filled in, physical goods are required
Receiving address details 2, Virtual goods do not need to be filled in, physical goods are required
Receiving city, Virtual goods do not need to be filled in, physical goods are required
Receiving continent, province, Virtual goods do not need to be filled in, physical goods are required
Receiving country, Refer to the country code table, Virtual goods do not need to be filled in, physical goods are required
Consignee’s zip code, Virtual goods do not need to be filled in, physical goods are required
Consignee phone, Virtual goods do not need to be filled in, physical goods are required
shilling email, Virtual goods do not need to be filled in, physical goods are required
Cardholder browser UserAgent
Cardholder IP address
product list
Product ID
product name
Commodity price
quantity of commodity
V3.0.0
{
"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
If the value is 0000, it will return success, other please refer to Error Code
Interface returns description
Request response data
Please redirect to CheckOut address
Corresponds to the [OrderNo] parameter of the order submission parameter
{
"code": "00000",
"message": "SUCCESS",
"data": {
"merOrderNo": "222222",
"payUrl": "http://abc.com/notify"
}
}