curl --request POST \
--url https://uat-interface.haipay.asia/sar/collect/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"amount": "<string>",
"payType": "<string>",
"inBankCode": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"goodsName": "<string>",
"goodsQuantity": "<string>",
"goodsPrice": "<string>",
"goodsSku": "<string>",
"goodsAvatar": "<string>",
"platform": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"currency": "<string>",
"notifyUrl": "<string>",
"subject": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"sign": "<string>"
}
}Business ID (obtained from backend, must match the currency in the URL)
Merchant Order Number
48Recipient name, used for risk control
Real mobile number
Real email address
Transaction amount (unit: local currency, accurate to two decimal places; punctuation marks such as "," are prohibited), test environment please use amount below 10SAR
^\d+\.\d{2}$Transaction type
Redirect URL after successful payment
Redirect URL after failed payment
Product name
Product quantity
Product price
^\d+\.\d{2}$Product unique identifier
Product image (https://)
Platform name
Unique user identifier (e.g., userId), used for risk control system, must be valid, otherwise it will affect the transaction. Format: digits, letters, or symbols -~!@#$%&*()_.
^[A-Za-z0-9\-~!@#$%&*()_]+$Signature
Currency (USD, local currency)
Callback URL
Payment note
Additional description
curl --request POST \
--url https://uat-interface.haipay.asia/sar/collect/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"amount": "<string>",
"payType": "<string>",
"inBankCode": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"goodsName": "<string>",
"goodsQuantity": "<string>",
"goodsPrice": "<string>",
"goodsSku": "<string>",
"goodsAvatar": "<string>",
"platform": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"currency": "<string>",
"notifyUrl": "<string>",
"subject": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"sign": "<string>"
}
}