WeChat Pay is a complete solution that WeChat provides for sales promotion, payment and collection, and business analysis to merchants who need to sell items/provide services. It includes a variety of payment methods, such as payment code payment and JSAPI payment. , mini program payment, APP payment, computer website payment, corporate WeChat payment, H5 payment, and a variety of payment tools, such as WeChat red envelopes, vouchers, etc.
WeChat payment configuration steps:
Step 1: Register payment merchant number
Step 2. Secret key (32 bits)
Step 3. Upload the certificate
Step 4. Add mini program authorization to the merchant account (note whether the authorization status is successful)
Step 5. Official account payment and JSAPI activation
< p>Log in to the mini program background and find Configuration Management → Payment ConfigurationLog in to activate the WeChat Pay Merchant Platform (), search for the merchant number, set the API key, and download the certificate in the WeChat Pay Merchant Platform
The following steps find where to find the above basic content.
Step 1. Search for the payment merchant number:
(Note: Try to use 360 ??Browser or Google Chrome to log in to the merchant number)
After entering, go to the account center - Merchant information, you can see the WeChat payment merchant number, write down the merchant number, and fill it in the backend.
Note: When entering the WeChat payment backend for the first time, you need to download the control and operation certificate (just follow the prompts step by step)
Step 2: API key: Then click API Security below, Set the API key. The API key must be 32-digit letters or numbers
Note: When setting the key here, look at the API key below. Do not set the APIV3 key.
Note: After setting this place, fill in the newly set key into the production background.
Step 3: Certificate path, key path: After setting the API key, click to download the API certificate
(Note: The certificate uploaded here is for refund. Refund You need to recharge money into your merchant account. )
After downloading, it is a compressed package, then decompress it and then upload it to the certificate path and key path according to the name.
Step 4: Apply for the mini program in the official account, and open WeChat payment in the official account; this method requires first logging in to the merchant account -> Product Center -> APPID Authorization Management -> Add the mini program Authorization. The details are as shown below:
If it is prompted that it has been bound (skip this step)
After authorization, go to the WeChat mini program background to agree to the authorization. As shown in the picture:
Make sure that the status of the application form in the picture above is authorized successfully.
Step 5: Check whether the WeChat payment merchant account public account payment and JSAPI are activated.
As shown below: (If it has not been activated, click to activate it. If there is no official account payment, you can ignore it)
(1) Official account payment activation (if there is no official account payment, skip this step)
(2) JSAPI activation