The construction tutorial of the Douyin inquiry system has been explained in detail for everyone before. I believe that through the explanation of the tutorial, basically friends with a little foundation can build it. Although the initial mode of the Douyin inquiry system is to develop merchants through agents. It is promoted, but in actual use, many customers have proposed the function of direct online payment by merchants. So today I will teach you how to configure the online payment function of the source code of the inquiry system (WeChat payment example).
1. Log in to the service account, open the official account settings, if not certified, please authenticate the service account first, the certification fee is 300 yuan/year
2. Open Official Account Settings -> Function Settings, and bind your filing domain name to the service account
3. Click the settings of the three domain name configurations. A domain name adding pop-up window will pop up, put the domain name into the pop-up window of the service account
Download the file in the pop-up window and transfer the file to /www/wwwroot/douyin_xunpang/public of the pagoda
Click Submit again to add the domain name successfully
4. In the basic configuration, you can see that the first two are the appid of the public account, and the secret key of the public account, which can be filled in the general inquiry system
5. Configure the ip whitelist and add the server ip to it
6. Associate WeChat merchant account
7. Log in to the WeChat merchant platform and set up the payment authorization directory. add two directories
1. Domain name + /store/
2. Domain name + /store/index/
8. Get the API payment key. Randomly set 32 characters, fill the payment key into the inquiry background
9. The payment page is (need to open with mobile phone WeChat)