
HTTP Request
POST /trade/v1/paymentpay_type: 800212 (WeChat H5 Payment)
Request Parameters
| Field Name | Field Code | Required | Type | Description |
|---|---|---|---|---|
| Common Payment Params | — | Yes | — | See Request Format |
| Extended Info | extend_info | Yes | Object | See structure below |
extend_info Structure
Extended Info Parameters
| Field Code | Subfield Code | Sub-subfield Code | Required | Type | Description |
|---|---|---|---|---|---|
scene_info | Yes | Object | Scene information | ||
h5_info | Yes | Object | H5 scene configuration | ||
type | Yes | String | Fixed value: Wap | ||
wap_url | Yes | String | Mobile website URL | ||
wap_name | Yes | String | Mobile website name | ||
spbill_create_ip | Yes | String | Customer’s real IP |
Response Parameters
| Field Code | Subfield Code | Type | Field Name | Description |
|---|---|---|---|---|
| Common Response Params | — | — | — | See Response Format |
| Payment URL | pay_url | String | Payment URL | URL to redirect the user to complete payment |
Example pay_url
Appended with redirect_url
Additional Notes
- Suitable for mobile websites, app-embedded browsers, and external mobile browsers.
- ❗ Not supported within the WeChat in-app browser.
wap_urlandwap_namemust match the actual mobile site information or WeChat may reject the request.- The IP address submitted must be the real client IP to avoid risk rejection by WeChat.
