Home >Backend Development >PHP Tutorial >javascript - WeChat payment redirect _uri error report

javascript - WeChat payment redirect _uri error report

WBOY
WBOYOriginal
2016-08-04 09:21:591184browse

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?

Reply content:

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn