Run in Apidog
OnlinePay will obtain the HTTP Header referer to verify the website source. The website source must be configured by OnlinePay to be verified. If you do not access the interface through a browser, you need to actively add a referer.
Request Body Params application/json
{
"merNo" : 111111 ,
"merOrderNo" : "222222" ,
"currencyCode" : "USD" ,
"sourceAmount" : "100.05" ,
"returnUrl" : "https://example.com" ,
"notifyUrl" : "https://example.com/notify" ,
"sign" : "906FDF4880B00B00281F2AB61AE9A721" ,
"ipAddress" : "192.168.1.1" ,
"version" : "V3.0.0" ,
"userId" : "111" ,
"email" : "example@gmail.com" ,
"osType" : "ANDROID" ,
"terminal" : "WAP"
} Request Code Samples
curl --location '/payment' \
--header 'paymentType: ALIPAY' \
--header 'Content-Type: application/json' \
--data-raw '{
"merNo": 111111,
"merOrderNo": "222222",
"currencyCode": "USD",
"sourceAmount": "100.05",
"returnUrl": "https://example.com",
"notifyUrl": "https://example.com/notify",
"sign": "906FDF4880B00B00281F2AB61AE9A721",
"ipAddress": "192.168.1.1",
"version": "V3.0.0",
"userId": "111",
"email": "example@gmail.com",
"osType": "ANDROID",
"terminal": "WAP"
}' Responses application/json
Generate Code
{
"code" : "00000" ,
"message" : "SUCCESS" ,
"data" : {
"payCode" : 0 ,
"tradeNo" : "ONL3333333" ,
"merorderNo" : "222222" ,
"payUrl" : "https://abc.com/"
}
} Modified at 2026-05-19 09:17:35