Recently, when I was working on a project using WeChat Pay's JSSDK payment, I encountered "the problem of unregistered URL", but I have added it to the payment directory in the public platform. I have tested this problem several times, and finally found that the original It's a case of capitalization, and my payment page is written in ASP.NET MVC, and the path is www.xxx.com/Product/Pay, where Product is the domain, Pay is the controller class, and the actual complete one should be www. xxx.com/Product/Pay/Index, when I use the path www.xxx.com/Product/Pay to call WeChat Pay, the payment directory in the public platform uses www.xxx.com/Product/
Pay attention to capitalization! ! !