payUrl to redirect the user to a HaiPay-hosted payment page where the user completes payment and authorization.
Integration Flow
Server calls the Collection Apply API
The merchant’s server sends a collection request to HaiPay with required parameters such as transaction amount, payment method, and callback URLs. For the apply endpoints of each payment method, see: Credit Card, Apple Pay, Google Pay, MIT.
Get payUrl and redirect
The API response contains a
payUrl field. Redirect the user’s browser to this URL.Example Code
Recommendations
- Best for the fastest payment integration with minimal frontend changes.
- When there is no strong requirement for custom payment page UI.
- In mobile H5 scenarios, the redirect experience typically meets requirements.

