Latest update time:2019.11.20 Release notes
1. About the detailed App-based development process, please refer to
Applicable object: Common modeInstitutional mode
Name | ID | Type | Required | Description |
---|---|---|---|---|
APP Application ID | appid | String(32) | Yes | This ID is issued after merchants have register their APP on WeChat open platform. It is the sub appid when calling the unified order API. Example:wx8888888888888888 |
Merchant ID | partnerid | String(32) | Yes | Specifies merchant ID assigned by WeChat Payment. It is the sub mch_id when calling the unified order API. Example:1900000109 |
Prepaid Trading ID | prepayid | String(32) | Yes | Specifies the parameter value (prepay_id) returned by the Unified Order API. Example:WX1217752501201407033233368018 |
Order Extension String | package | String(128) | Yes | Specify as the static value “Sign=WXPay” Example:Sign=WXPay |
Random String | noncestr | String(32) | Yes | 32 characters or fewer. For more information, see Random String Algorithm. Example:5K8264ILTKCH16CQ2502SI8ZNMTM67VS |
Time stamp | timestamp | String(10) | Yes | Specifies the current time. For more information, see Timestamp in Parameter Specifications. Example:1414561699 |
Signature | sign | String(64) | Yes | Specifies a signature. For more information, see Signature Algorithm. Note:Institution’s API key must be used for generating signature. Example:C380BEC2BFD727A4B6845133519F3AD6 |
Data returned:
Field Name | Return Value | Description |
---|---|---|
0 | Payment successful | Show the payment successful page |
-1 | Payment error | Possible reasons: sign error, unregistered appid, incorrect project appid, registered appid not match to the set one, etc. |
-2 | Payment cancelled | No need to settle. User gives up the payment, etc. |
Customer Service Tel
Business Development
9:00-18:00
Monday-Friday GMT+8
Technical Support
WeChat Pay Global
ICP证