Use the appId corresponding to PHP. After successful user payment, the PHP balance will be increased.
curl --request POST \
--url https://uat-interface.haipay.asia/php/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>",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"subject": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"bankNo": "<string>",
"bankCode": "<string>",
"qrCode": "<string>",
"sign": "<string>"
}
}Business ID (obtain from backend, must match the business ID according to the currency in the URL).
Merchant order number.
48Payee name (format: upper/lowercase letters with spaces allowed, 1-30 chars, "firstName middleName lastName" (middleName optional, special characters supported: ! -)).
1 - 30^[A-Za-z\s!-]+$Real phone number (Format: starts with 09, digits only, 11 digits total).
^09\d{9}$Real email address.
Transaction amount (unit: ₱, accurate to 2 decimals; do not include punctuation such as “,”).
^(?:[5-9]\d|[1-9]\d{2,3}|[1-4]\d{4}|49999)(?:\.\d{2})?$Transaction type.
.
Redirect URL after successful payment.
Redirect URL after failed payment.
Unique user identifier (e.g., userId), required for risk control. Must be valid. Format: digits, letters, or common symbols -~!@#$%&*()_.
^[A-Za-z0-9\-~!@#$%&*()_]+$Signature.
Callback URL.
Payment remark (transaction title, product name, payment reason).
Detailed remark.
curl --request POST \
--url https://uat-interface.haipay.asia/php/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>",
"partnerUserId": "<string>",
"sign": "<string>",
"notifyUrl": "<string>",
"subject": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"bankNo": "<string>",
"bankCode": "<string>",
"qrCode": "<string>",
"sign": "<string>"
}
}