Use Cases
- Payment initiated via mobile browsers (not inside native apps)
- Suitable for mobile websites, WebApps, or flows where users open links in Safari/Chrome
- Supported wallets:
- Alipay Cross-Border (
801107) - AlipayHK (
801512) - Alipay Service Window H5 (
800107) — requires user authorisation (openid)
- Alipay Cross-Border (
Social apps (e.g. WeChat, Facebook Messenger) may block redirecting to external wallet apps.
For better conversion, guide users to open payment links in Safari, Chrome, or the system browser.
For better conversion, guide users to open payment links in Safari, Chrome, or the system browser.
HTTP Request
Endpoint:POST /trade/v1/payment
PayType Reference
| PayType | Wallet | Description |
|---|---|---|
801107 | Alipay Cross-Border | International WAP/H5 payment |
801512 | AlipayHK | Hong Kong WAP payments |
800107 | Alipay Service Window H5 | Requires user authorisation code (openid) |
Request Parameters
For the full list of shared parameters, see:Common Request Parameters Below are Alipay WAP / H5 specific or commonly required fields:
| Parameter | Required | Description |
|---|---|---|
pay_type | Yes | One of 801107, 801512, 800107 |
return_url | Recommended | Redirect after payment completion (browser flow) |
notify_url | Recommended | Backend webhook for payment result |
goods_name | Recommended | Required by some wallets; keep ≤20 chars |
openid | Conditional | Required for 800107 only (Alipay Service Window H5) |
expired_time | Optional | QR / link expiry in minutes (5–120, if supported) |
limit_pay | Optional | Mainland restrictions only (if applicable) |
mchid | Conditional | Include only if provided by QFPay for your store setup |
Sample Request
Response Parameters
Refer to shared fields here:Public Response Parameters
Sample Response
Asynchronous Notification
After payment completion, QFPay will notify your backend vianotify_url.
- Notification format: Asynchronous Notifications
- Verify final status via API: Transaction Enquiry
Security Considerations
- Follow signature rules: Signature Generation
- Never expose secret keys in front-end code
- For errors: Status Codes
Additional References
- Official: Alipay H5 Authorisation Flow (Service Window)
- Official: Alipay Cashier / WAP Documentation
