Home > WeChat Applet > WeChat Development > WeChat payment development tutorial

WeChat payment development tutorial

高洛峰
Release: 2017-02-23 13:55:27
Original
1570 people have browsed it

This article introduces the WeChat Pay development tutorial for WeChat Pay v2 and v3 versions, which comes from the official website of WeChat Public Platform. Original text: //m.sbmmt.com

Preface

WeChat payment is now divided into v2 version and v3 version. Those who applied before September 10, 2014 will be in v2 version, and those who apply after that is version v3. The V3 version of WeChat Pay does not have the paySignKey parameter.

1. WeChat Payment v2

1. Use the web authorization interface

Use the web authorization interface to obtain the user's basic information.
[WeChat public account] OAuth2.0 authorization.pdf click to download

2. Use the shared delivery address control

Use the shared delivery address control to obtain the user's delivery on WeChat address. [WeChat public account payment] Receiving address sharing interface document V1.6.pdf click to download

3. Use the public account to initiate a payment request

Use JS API to initiate a payment request on the WeChat web page , for detailed methods, see the JS API chapter in the document.
Use Native API to initiate a payment request, please refer to the chapter about Native API in the detailed method document. Click to download the WeChat payment interface document and demo (public account).zip

4. Connect to the customer service rights protection system

All public account merchants must connect to the customer service rights protection system. After accessing the customer service rights protection system, users can select an order through the "Rights Protection" menu in the custom menu and initiate a rights protection request to WeChat. WeChat will notify the merchant of rights protection information through payfeedback_url, and the merchant must handle the rights protection request within the specified time. [WeChat Public Account Payment] User Rights Protection System and Interface Description V1.6.pdf Click to download

5. Initiate payment request on third-party applications

On iOS platform and android platform Third-party applications initiate payment requests through WeChat Pay SDK. Click to download the WeChat payment interface document and demo(APP).zip

6. WeChat payment refund & reconciliation

Use the WeChat payment refund and reconciliation function to help easily achieve refunds and Reconciliation. WeChat payment (refund & reconciliation interface) document.zip click to download

2. WeChat payment v3

Tips:
Due to the upgrade of the WeChat payment merchant platform, If you receive an email notification from the payment assistant with the following information after passing the data review, please proceed with payment development according to the interface document on this page.
1. Information includes: merchant ID, application number, login account, login password, merchant API password
2. Certificates include: merchant API certificate, certificate key, CA certificate

1. Use the web authorization interface

Use the web authorization interface to obtain the user's basic information.
[WeChat public account] OAuth2.0 authorization.pdf click to download

2. Use the shared delivery address control

Use the shared delivery address control to obtain the user's delivery on WeChat address. [WeChat public account payment] Receiving address sharing interface document V1.6.pdf click to download

3. Use the public account to initiate a payment request

Use JS API to initiate a payment request on the WeChat web page , for detailed methods, see the JS API chapter in the document.
Use Native API to initiate a payment request. For detailed methods, see the chapter about Native API in the document. WeChat payment interface document and demo (public account).zip click to download

4. Use the scanned method to initiate a payment request

Use the scanned method to initiate a payment request in WeChat. For detailed methods, see the interface document. WeChat payment interface document (scanned payment).zip click to download

5. Initiate payment request on third-party application

In third-party applications on iOS platform and android platform, pay through WeChat The SDK initiates a payment request. WeChat payment interface document and demo (APP).zip (the document is being updated and will be supplemented and improved in the near future)

For more WeChat payment development tutorials and related articles, please pay attention to the PHP Chinese website!


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template