当前位置:网站首页>How to activate the payment function on WeChat official account?

How to activate the payment function on WeChat official account?

2022-08-10 01:47:00 susu98637

With the start of the second half of mobile payments, many merchants are now actively preparing for the online transition.Using WeChat official account to pay is undoubtedly the first choice for many merchants. It can not only set up the merchant's own brand, but also allow fans to follow the official account, and at the same time, it can also use WeChat traffic to increase exposure.

And for consumers, opening WeChat and using the official account to buy goods is bound to be more convenient and handy than other methods.

However, many merchants and service providers will step on many "pits" when opening the account because they are not aware of the particularity of the official account payment. I will share with you some procedures for opening the official account payment, as well as precautions.

1. First of all, merchants need to apply for opening their own WeChat official account (must be a service account) on the WeChat official platform, and deploy their own products and purchase portals in the official account.

2. After you have your own official account, you can apply for opening a payment merchant account.

1) When applying, please note that you need to use the same merchant entity as the official account application entity as the name of the merchant account to access the network;

2)Especially for merchants with parentheses in the subject name, pay special attention to the format of the parentheses in the subject when applying for an official account at that time, and must be consistent.

It is usually recommended that merchants directly copy the subject name from the WeChat public background to the service provider to ensure that everything is safe.The paste location is: WeChat public background - official account settings - "subject information" content in account details.

3) After opening the merchant account, the merchant needs to provide the appid of the official account and the payment authorization directory to the service provider.

The official account appid: the unique identifier of the WeChat official account, usually an 18-bit string starting with "wx".After applying for an official account on the WeChat public platform, WeChat will automatically assign the corresponding appid to uniquely identify the application.It can be viewed on the WeChat public platform - Developer Center, and this field will also be included in the merchant's official account opening email.

Payment authorization directory: that is, the domain name address that uses the official account payment method to initiate payment requests.

(1) All domain name links that use the official account payment method to initiate payment must be under the payment authorization directory;

(2) Up to 5 can be configured at the same time (can be modified and replaced), and the domain name must pass the ICP record;

(3) The header of the directory must contain http or https, and it needs to be refined to the second or third level directory, ending with "/".

Payment process:

The user opens the merchant's webpage to purchase products, initiates payment, calls the getBrandWCPayRequest interface through JavaScript on the webpage, initiates a WeChat payment request, and the user enters the payment process.

After the user successfully pays and clicks the Done button, the front end of the merchant will receive a JavaScript return value.Merchants can directly jump to the static page of successful payment for display.

The merchant's background receives the payment success callback notification from the WeChat open platform, indicating that the order payment is successful.

原网站

版权声明
本文为[susu98637]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208092342021905.html