Home > Article > WeChat Applet > WeChat payment development tutorial
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: http://www.php.cn
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.
Use the web authorization interface to obtain the user's basic information.
[WeChat public account] OAuth2.0 authorization.pdf click to download
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
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
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
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
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
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
Use the web authorization interface to obtain the user's basic information.
[WeChat public account] OAuth2.0 authorization.pdf click to download
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
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
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
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!