Download is the latest official php payment demo directly modified the necessary configuration information when you pay, whether it is h5 payment or scan the code payment has been redirected to the blank page, there is no error, then I tried a lot of methods finally fixed the specific modification by modifying the WxPay file. api. php...
Download the latest official php payment demo and directly modify the necessary configuration information.
There is no error when you go to the blank page during the payment process, whether it is h5 payment or scanning payment.
Later, I tried a lot of methods and finally solved the problem.
This error is solved by modifying the WxPay. Api. php file, as follows:
537th rows
Curl_setopt ($ ch, CURLOPT_SSL_VERIFYPEER, TRUE );
Curl_setopt ($ ch, CURLOPT_SSL_VERIFYHOST, 2); // strict verification
To
Curl_setopt ($ ch, CURLOPT_SSL_VERIFYPEER, FALSE );
Curl_setopt ($ ch, CURLOPT_SSL_VERIFYHOST, FALSE); // strict verification
The demo directory structure downloaded officially is the domain name followed by a folder.
The content is as follows:
But is this a code error or an environment problem?