This paper provides the methods and ideas to support the two most commonly used scenarios in the use of Web sites
1. Scan the code of wechat client to authorize wechat account to log in to the website and share wechat user information
a) Register your website information on wechat platform
b) Generate authorization login QR code, realize client scan code login
2. Generate wechat payment QR code in the website, and the wechat client can obtain payment information after scanning the payment code
a) Register your own merchant information and application information on wechat platform
b) When placing an order on the website, the payment QR code is generated by calling wechat interface
c) Wechat client scans the code for payment, and the payment success information is obtained and displayed on the page
Note 1. Demo is authorized to login as official account number of WeChat public. The website can refer to the same process.
Note 2. Replace the relevant merchant ID in the payment demo with the relevant information of your application