WeChat payment development tutorial

Source: Internet
Author: User
This article introduces the payment development tutorial for v2 and v3, which is from the official website of the public platform. This article introduces the payment development tutorial for v2 and v3, which is from the official website of the public platform. Original article: http://www.php.cn

Preface

Payment is now divided into v2 and v3. the application for payment is v2 before January 1, September 10, 2014, and the application for payment is v3. The paySignKey parameter is not provided for payment in V3.

I. pay v2 1. use the webpage authorization interface

Use the webpage authorization interface to obtain basic user information.
【Public account 】oauth2.0authorized users click to download

2. use the shared receiving address control

Use the shared shipping address control to obtain the user's shipping address. 【Public number payment token address sharing interface file 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 webpage. for details, see the section on js api in this document.
Use the Native API to initiate a payment request. for details, refer to the Native API section. Payment Interface Document and demo(public account No. ).zip click to download

4. access the customer service rights protection system

All merchants with public accounts must access the customer service rights protection system. After access to the customer service rights protection system, you can select an order from the "rights protection" menu in the custom menu to initiate a request for rights protection. A notification will be sent to the merchant through payfeedback_url. the merchant must process the request within the specified time. 【Public account payment; user privilege system and interface description v1.6.pdf click to download

5. initiate a payment request on a third-party application

Third-party applications on iOS and android platforms initiate payment requests through the payment SDK. Payment Interface Document and demo(app).zip click to download

6. refund payment and reconciliation

The refund and reconciliation functions help you easily implement refund and reconciliation. Payment (refund & Reconciliation interface documentation .zip click to download

II. payment v3

Tip:
If you receive an email notification sent by the payment assistant after the information is approved, follow the interface documentation on this page for payment development.
1. information includes: Merchant ID, application ID, logon account, logon password, and merchant API password
2. certificates include: Merchant API certificate, certificate key, and CA certificate

1. use the webpage authorization interface

Use the webpage authorization interface to obtain basic user information.
【Public account 】oauth2.0authorized users click to download

2. use the shared receiving address control

Use the shared shipping address control to obtain the user's shipping address. 【Public number payment token address sharing interface file 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 webpage. for details, see the section on js api in this document.
Use the Native API to initiate a payment request. For more information, see The Native API chapter in this document. Payment Interface Document and demo(public account No. ).zip click to download

4. Use scan to initiate a payment request

Use the scanned method to initiate a payment request in. for details, see The Interface documentation. Payment Interface Document (scanned payment ).zip) Click to download

5. initiate a payment request on a third-party application

Third-party applications on iOS and android platforms initiate payment requests through the payment SDK. Payment Interface Document and demo(app).zip (this document is being updated and will be supplemented soon)

For more information about the payment development tutorial, see The PHP Chinese website!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.