How to integrate native Alipay channels
Novel sites, image sites and some resource sites often have more Alipay users than WeChat users. Native Alipay channels collect payment per order and return the amount, merchant order ID and payment result to your system. Availability depends on the current channel configuration.
Native Alipay versus personal QR channels
Native channels create orders through an API, with the amount fixed by your server. Personal QR channels are lighter and suit lower-volume sites, but require checks for amounts, expiry and payments matched to the wrong order. Both look like Alipay to users. Merchants must distinguish callback support and whether repeated notifications cause duplicate fulfillment.
Decide where users will pay first
- Mobile browser: H5 commonly opens Alipay and returns users to your site after payment.
- Desktop: usually displays a QR code for users to scan in Alipay.
- Already open in Alipay: use its in-app ordering flow instead of adding an external browser layer.
A page redirect may be interrupted. Returning to the site does not prove payment. Confirm receipt through server callbacks or active order queries.
Confirm these four points before integration
- Give every order a unique merchant order ID. Only the server sets the amount; do not trust values sent by the frontend.
- Make the callback URL publicly accessible. Verify the signature first, then the amount, order ID and payment status.
- Repeated success notifications for the same order must trigger fulfillment or a balance increase only once.
- For unpaid timeouts, cancellations or amount mismatches, keep the local order incomplete and do not fulfill automatically.
Using native Alipay alongside native WeChat
Do not force habitual WeChat users through Alipay, or vice versa. Resource and video sites can offer two entry points by device, with separate order IDs and optionally separate callback URLs for easier reconciliation. If Alipay dominates, test native Alipay first; add native WeChat for traffic inside WeChat. Confirm fees and availability against the actual configuration after consultation.