Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

An example Analysis of WeChat Pay developed by Wex5

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article will explain in detail the example analysis of WeChat Pay in Wex5 development. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

I. conditions for the opening of WeChat Pay by an enterprise

WeChat Pay is a payment function integrated in the Wechat client, and users can complete a fast payment process through their mobile phones. WeChat Pay provides safe, fast and efficient payment services to users on the basis of fast payment bound with bank cards.

Under typical circumstances, WeCom's payment opening conditions need to be met:

1) has a public account and is a service number

2) Public accounts must be authenticated by Wechat. (unauthenticated users can apply for Wechat authentication first)

1) enter the application page, public platform = "WeChat Pay

Fill in the "basic information of merchants", "business audit data", "financial audit data" and other information.

2) sign the letter of commitment

After the examination and approval of the information, download the promise template according to the guidelines and sign and seal it.

[warm reminder] the commitment letter can be downloaded only after the approval of "merchant basic information", "business audit data" and "financial audit data".

3) sign the agreement

Confirm the merchant information and sign the WeChat Pay service agreement online without mailing the contract.

4) precautions

The audit time of each stage of ① is 7 working days.

If the ② fails the examination, you can inquire about the reasons for the failure in the "Notification Center" on Wechat public platform. Please modify it and upload it again.

In order not to delay moving to the next step, ③ recommends that merchants sign the contract at the same time as the development work (when the review is passed, Tencent will send the important development parameters related to WeChat Pay to the mailbox entered when "Business Review data").

However, for businesses, what kind of payment methods do users like to have what kind of payment function merchants have. In addition to WeChat Pay, Alipay is also the most commonly used payment method for businesses. Like Weimeng (weimob) platform Weimeng pay in addition to WeChat Pay, but also integrated Alipay, Tenpay, UnionPay three major online payment functions to avoid consumers jumping out of the payment link.

II. Supplement

1. Now you don't have to pay a 20, 000 deposit to open WeChat Pay, but Wechat officials need to charge a 0.6% handling fee.

two。 Subscription account, a government and media type, can open a Wechat store, and the rest must be a service number.

3. The information you need to provide: business license, ID card, WeChat name, contact information, bank account, etc., and then directly through the public platform third-party platform (such as Mickey Marketing) to help open, usually about five days to complete. Enterprises, institutions, associations, media and so on can be opened.

4. If it was Subscription account before, you can also find a third party to upgrade to a service number and then activate WeChat Pay function.

5. If the self-employed has a business license, then there are ways to apply for Wechat certification, WeChat Pay, the method see the third above.

6. Individual users cannot activate the official WeChat Pay function.

III. Application method for official account payment

1. Log in to the public platform and select "WeChat Pay" = "Click" to activate "=" to fill in the information as prompted on the page.

2. After receiving the approved email, you can start the development work. You need to log in to the merchant platform (pay.weixin.qq.com), fill in the amount received by the transfer on the page, and sign the agreement online to complete the payment application.

IV. Application method of APP payment

Log in to the open platform (http://open.weixin.qq.com), select "console" = "Mobile Apps", select the application that needs to apply for payment, and click "View" = "WeChat Pay" = "Application for Activation". The application process is the same as that of the official account payment application process.

Fifth, the development process of code scanning payment in micro-payment

Code scan payment development process:

(1) the merchant background system generates a QR code according to the format prescribed by WeChat Pay and shows it to the user to scan the code.

(2) the user opens Wechat to "scan" the QR code, and the Wechat client sends the scanned content to WeChat Pay's system.

(3) WeChat Pay system receives a request from the client and initiates a call to the payment callback URL of the merchant backend system. The call request will take parameters such as productid and user's openid, and require the merchant system to return the delivery packet.

(4) the merchant backend system receives a callback request from WeChat Pay's system and generates an order from the merchant system according to productid.

(5) the merchant system calls WeChat Pay [Unified order API] to request to place an order to obtain the transaction session ID (prepay_id).

(6) WeChat Pay system generates a prepaid transaction according to the request of the merchant system and returns the transaction session ID (prepay_id).

(7) the merchant backend system gets the transaction session ID prepay_id (valid for 2 hours).

(8) the merchant backend system returns the prepay_id to WeChat Pay system.

(9) WeChat Pay system initiates the client-side authorized payment process according to the transaction session identification.

(10) after the user enters the password in the Wechat client and confirms the payment, the Wechat client submits the payment authorization.

(11) deduction after verification of WeChat Pay system to complete the payment transaction.

(12) after the WeChat Pay system completes the payment transaction, it returns the transaction result to the Wechat client, and reminds the user of the transaction result by SMS and Wechat message. The Wechat client displays the payment transaction results page.

(13) the WeChat Pay system notifies the merchant background system of the payment result by sending an asynchronous message. The merchant backstage system needs to reply to the reception and notify the Wechat backstage system not to send the payment notice of the order.

(14) if the payment notification is not received, the merchant backend system calls [query order API].

(15) the merchant shall deliver the goods to the user after confirming that the order has been paid.

This is the end of this article on "sample Analysis of WeChat Pay in Wex5 Development". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report