Home >Backend Development >PHP Tutorial >WeChat payment php official demo blank problem
I downloaded the latest official php payment demo and directly modified the necessary configuration information.
When paying, whether it is h5 payment or scan code payment, it always jumps to a blank page without any errors. Later, I tried many methods and finally solved the specific modifications. What is
This error is solved by modifying the file WxPay.Api.php, as follows:
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,TRUE);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,2);//Strict verification
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($ch,CURLOPT_SSL_VERIFYHOST,FALSE);//Strict verification
The content is as follows: