safaricom / mpesa-php-sdk

A PHP sdk for the new Mpesa RESTful APIs
188 stars 211 forks source link

Using IIS to host the app #37

Open AbeNalee opened 5 years ago

AbeNalee commented 5 years ago

Hi, I noticed that when using IIS, the server will try to verify SSL on both the host and the peer. If you are using IIS, I recommend adding these lines to each post request you make from the package (c2b, stk, b2b, etc):

curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);

cheers :)