Javascript-WeChat payment redirect_uri error

Source: Internet
Author: User
The code is correct, and the authorization directory has been checked. The most embarrassing problem is that it is opened from the browser. if I open it from the link in the dialog box, the payment page can be called. if I enter it from the merchant's public account, the redirect -- uri error will be reported. this is embarrassing... the code is correct, and the authorization directory has been checked. The most embarrassing problem is that it is opened from the browser. if I open it from the link in the dialog box, the payment page can be called. if I enter it from the merchant's public account, the redirect -- uri error will be reported. this is very embarrassing... Has anyone ever encountered such a problem?

Reply content:

The code is correct, and the authorization directory has been checked. The most embarrassing problem is that it is opened from the browser. if I open it from the link in the dialog box, the payment page can be called. if I enter it from the merchant's public account, the redirect -- uri error will be reported. this is very embarrassing... Has anyone ever encountered such a problem?

The addresses entered in these two methods should be different. you can copy the connection and compare the two address strings.

Authorization must be enabled in. if the program simulates the request authorization address, it cannot. Check whether the authorization addresses are consistent.

Check whether you have set domain names in the background.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.