Learn interface types, shared fields, signing rules, callback handling, and common response structures before implementation.
If you need the short version, this page answers three things first: which integration modes HaiPay supports, which communication rules apply, and what the API request structure looks like.
One integration supports multiple payment methods worldwide. The system automatically redirects users to the corresponding country’s payment page based on their IP, allowing users to choose payment methods to complete payment.
Local Cashier
North America, South America, Europe, Asia, Middle East, etc.
Single Country Business
Independent integration, API synchronously returns payment pages supported by specific countries for users to choose and complete payment.
Pure API Payment Interface
North America, South America, Europe, Asia, Middle East, etc.
Single Country Business
Independent integration, API synchronously returns relevant information for specific payment methods, facilitating customer-customized payment pages.
Other Payment Interfaces
Global (International Credit Cards, Credit Card Subscriptions)
Below is the structure for calling HaiPay APIs. The API name is appended to the request URL. The content inside data contains the concatenated payload for different business operations.
POST https://uat-interface.haipay.asia/{currency}/{api_endpoint}{ "appId": 1054, "orderId": "M233323000059", ... "sign": "af0gAHkUOyYHu9owQp8NJ4mPEeUW4vuJcjdxqLIzrVw8AvpLSjD1DXupReSG/CyuSkFRyiIvCp5u703AuGGmfgD2gKDH3Ywau41bAbG2jnHJ8mtjiSJ5iWUzanyd4Kr7d1+rETbzUl7/BkW3t0X8UUFdqpxwG8DPUjAwUKfplWDHV7koG51Ozexd80DCsmW6eWdouAZ1uNXGLYmV3ftE3BmfNRtuv1C5bfTJWrTEIOxbF6g2uYOFZTlIgrQgd7/2PsAYwQQXNz8Q8CYl4OxqCv4pXJxaLWPbR5tqZu9og5kn32C9aHW/NlU1y39vzz+4ef81yPAqUV9oHlSMSPrMmw=="}
The example request above uses the test environment URL. For the production URL, please contact HaiPay business support at go-live. Test and production environments use separate accounts; appId is not interchangeable.