Run in Apifox
Note: OnlinePay background will obtain the referer of Http Header to verify the website source. The website source must be configured in the OnlinePay merchant background to pass the detection. 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" : "CNY" ,
"sourceAmount" : "100.05" ,
"returnUrl" : "https://example.com" ,
"notifyUrl" : "https://example.com/notify" ,
"sign" : "9D6FDF4880B00B002B1F2AB61AE9A721" ,
"ipAddress" : "116.235.134.86" ,
"version" : "V3.0.0" ,
"userId" : "111" ,
"email" : "example@gmail.com"
}
Request Code Samples
curl --location --request POST 'https://pay.online.ai/payment' \
--header 'paymentType;' \
--header 'Content-Type: application/json' \
--data-raw '{
"merNo": 111111,
"merOrderNo": "222222",
"currencyCode": "CNY",
"sourceAmount": "100.05",
"returnUrl": "https://example.com",
"notifyUrl": "https://example.com/notify",
"sign": "9D6FDF4880B00B002B1F2AB61AE9A721",
"ipAddress": "116.235.134.86",
"version": "V3.0.0",
"userId": "111",
"email": "example@gmail.com"
}'
Responses application/json Generate Code
{
"code" : "00000" ,
"message" : "SUCCESS" ,
"data" : {
"payCode" : 0 ,
"tradeNo" : "333333" ,
"merOrderNo" : "222222" ,
"payUrl" : "http://abc.com/notify"
}
}
Modified at 2023-04-28 03:25:25