This period of time has been relatively busy, a busy really feel that they are just a machine to make money (said as if can earn how much money, at the moment, a little free time, want to put forward the development of micro-credit before the public number payment encountered problems and solutions to share with you, these "dark pits" can not drop it, Otherwise, the crux of the matter, it is really urgent to burn.
Double 12 customer Mall activities are in the process of being ready, but there are users frequently feedback said: Not pay, there are problems, and screenshots are as follows:
At that time the question felt very strange, oneself test many times all OK, the question has been solved hurriedly, finally found the solution:
The reason is that a string variable in the program is incorrectly set to the numeric type, the solution is simple, you just need to add double quotes
Open WxPay.JsApiPay.php This file
->settimestamp the $jsapi ($timeStamp);
Modified into $jsapi->settimestamp ("$timeStamp");
There is also a need to remind that: because the micro-trust to pay through the Web page authorization to obtain user information, so the launch of the payment page address can not have parameters, or will prompt: ReturnUrl does not exist.
Well, this is my personal solution, have a good solution, welcome you to put forward, common learning progress, thank you!