MicahCarrick / PHP-PayPal-IPN

PHP 5 class to listen for and handle Instant Payment Notifications (IPN) from PayPal.
BSD 3-Clause "New" or "Revised" License
419 stars 211 forks source link

PayPal CA certificate #6

Closed vlad88sv closed 12 years ago

vlad88sv commented 12 years ago

I was getting: cURL error: [60] SSL certificate problem, verify that the CA cert is OK.

Then I read this: http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/

I've added in ipnlistener.php this: curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

on function curlPost() after "curl_setopt($ch, CURLOPT_HEADER, true);" (around line 103)

I think this needs the "proper fix", maybe you should bundle PayPal CA certificate along with the example?.

Thank you very much.

smartcreative commented 12 years ago

I had the same problem. Thanks vlad88sv for the "quick fix"!

MicahCarrick commented 12 years ago

This was added in a recent merge.