I am losing all my hair since a couple of days with the Paypal Sandbox. My IPN does not work anymore. I can't have SSL connection with fsockopen() or Curl. I've try with different accounts and different hosts. Nothing.
$host = 'www.sandbox.paypal.com';
if(function_exists('openssl_open')) {
$fp = fsockopen('ssl://'.$host,443,$errno,$errstr,30);
if($fp) {
echo "success : ";
var_dump($fp);
}
else echo "echec : ".$errno." | ".$errstr;
fclose($fp);
}
This short code return echec : 0 |
The response is the same with www.paypal.com
Curiously, with www.google.com, I have : success : resource(2) of type (stream)
I'm on a PHP 7 which should normally have the latest release (g5, SHA256 ...) requested by Paypal. Is there a way to make this connection with Paypal ?
Update : I have check the SHA on https://www.sha2sslchecker.com/. I'm hosted by OVH on a shared plan. Only SHA1 is available. Paypal required now SHA2. That's it.