How to solve the error of calling payment jsapi, such as missing parameters, timeStamp, etc.
This article mainly describes how to solve the call to pay jsapi missing parameters, timeStamp and other errors, the text is very detailed, has a certain reference value, interested friends must read!
There is a problem and screenshots are as follows:
At that time, the problem felt very strange. I tested it many times and it was OK. When the problem came, I quickly solved it. Finally, I found a solution:
The reason is that a string variable in the program is incorrectly set to a numeric type. The solution is simple. You only need to put double quotes on it.
Open WxPay.JsApiPay.php
$jsapi->SetTimeStamp($timeStamp);
$jsapi->SetTimeStamp("$timeStamp");
Another point to remind is that since Weixin Official Accounts payment needs to obtain user information through web page authorization, the page address initiating payment cannot have parameters, otherwise it will prompt: returnurl does not exist.
The above is "how to solve the call to pay jsapi missing parameters, timeStamp and other errors" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!