Use the appId corresponding to KRW. After successful user payment, the KRW balance will be increased.
curl --request POST \
--url https://uat-interface.haipay.asia/krw/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>",
"country": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"sign": "<string>"
}
}Business ID (obtained from backend, must pass corresponding business ID based on currency in URL)
Merchant order number
48User name, recommended to use real name, format: firstName and lastName separated by space, example: Donald John Trump
Phone number
Email address
Transaction amount (unit: ₩, 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
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
Callback URL
Payment remark
Cashier mode requires this parameter, please pass: 410
Remark details
curl --request POST \
--url https://uat-interface.haipay.asia/krw/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>",
"country": "<string>",
"body": "<string>"
}
'{
"status": "<string>",
"error": "<string>",
"msg": "<string>",
"data": {
"orderId": "<string>",
"orderNo": "<string>",
"payUrl": "<string>",
"sign": "<string>"
}
}