Collection application in MIT mode. Use the appId corresponding to USD. After successful user payment, the USD balance will be increased.
curl --request POST \
--url https://uat-interface.haipay.asia/usd/mit/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"amount": "<string>",
"payType": "<string>",
"inBankCode": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"subject": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"clientIp": "127.0.0.1",
"notifyUrl": "<string>",
"body": "<string>",
"tokenID": "<string>",
"token": "<string>",
"loadingType": 0,
"cancelUrl": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"clientToken": "<string>",
"sign": "<string>"
}
}Business ID (obtained from backend, must pass corresponding business ID based on currency in URL)
Merchant refund application order number
48Transaction amount (accurate to two decimal places; do not add punctuation, e.g., ",")
^\d+\.\d{2}$URL to redirect after successful payment
URL to redirect after failed payment
Payment remark
Unique user identifier (e.g., userId), used for risk control, must be real and valid, otherwise it will affect transactions. Format requirements: digits, uppercase and lowercase letters or common symbols -~!@#$%&*()_.
^[A-Za-z0-9\-~!@#$%&*()_]+$Signature
User name, recommended to use real name, format: firstName and lastName separated by space, example: Donald John Trump
Real phone number
Real email address
Client IP address
Callback URL
Remark details
Payment token, not required for first transaction, required for subsequent active deductions, obtained through callback
Apple Pay / Google Pay Token, you can obtain and transfer the data yourself or use the HaiPay page., How to get?
0 (default) – Display the current/normal payment result view; 1 – Show a loading spinner with no order information.
0, 1 If provided, the user can click “Back” on the payment page to return to this URL after canceling the payment.
curl --request POST \
--url https://uat-interface.haipay.asia/usd/mit/apply \
--header 'Content-Type: application/json' \
--data '
{
"appId": 123,
"orderId": "<string>",
"amount": "<string>",
"payType": "<string>",
"inBankCode": "<string>",
"callBackUrl": "<string>",
"callBackFailUrl": "<string>",
"subject": "<string>",
"partnerUserId": "<string>",
"sign": "<string>",
"name": "<string>",
"phone": "<string>",
"email": "jsmith@example.com",
"clientIp": "127.0.0.1",
"notifyUrl": "<string>",
"body": "<string>",
"tokenID": "<string>",
"token": "<string>",
"loadingType": 0,
"cancelUrl": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"clientToken": "<string>",
"sign": "<string>"
}
}