Home >Backend Development >PHP Tutorial >javascript - WeChat payment redirect _uri error report
There is no problem with the code, and the authorization directory has been checked and there is no problem. The most embarrassing problem is that it is also opened from the WeChat browser. If I open it from the link in the dialog box, the payment page can be called up. If I enter it from the merchant's official account, a redirect-uri error will be reported. This This is so embarrassing. . . Has anyone encountered this kind of problem?
There is no problem with the code, and the authorization directory has been checked and there is no problem. The most embarrassing problem is that it is also opened from the WeChat browser. If I open it from the link in the dialog box, the payment page can be called up. If I enter it from the merchant's official account, a redirect-uri error will be reported. This This is so embarrassing. . . Has anyone encountered this kind of problem?
The addresses entered by these two methods should be different. You can copy the connection and compare the two address strings
Authorization must be opened in WeChat. It will not work if the program simulates requesting the authorization address. Here you first check whether the authorized addresses are consistent.
Please check whether you have set up a domain name in the WeChat backend