Login expired. Please log in again.

Feedback

0/300

Feedback

Submitted successfully

ok

Feedback

Network exception, please try again later

ok

Call Payment API from APP

Latest update time:2019.11.20 Release notes


Tips:

1. About the detailed App-based development process, please refer to

API intro

Applicable object: Common modeInstitutional mode

Call Payment API for APP

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.


Release notes

关闭
V1.0
2019.11.20
1.Call Payment API from APP released online

About  WeChat  Pay

Powered By Tencent & Tenpay Copyright©

2005-2024 Tenpay All Rights Reserved.

Contact Us
Wechat Pay Global

WeChat Pay Global