php paypal IPN升级后无效

时间:2016-05-18 09:03:34

标签: php paypal-ipn paypal-sandbox paypal-subscriptions

在Paypal Sandbox上进行安全性更改后,我的IPN侦听器无效。 我使用OpenSSL / 1.0.1e将php升级到 5.5.32 并卷曲到 7.47.0

以下是我的卷发设置:

$ch = curl_init();

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAINFO, 
          dirname(__FILE__)."/cert/cacert.pem");
curl_setopt($ch, CURLOPT_URL, $uri);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $encoded_data);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $this->follow_location);
curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);

if ($this->force_ssl_v3) {
  curl_setopt($ch, CURLOPT_SSLVERSION, 6);
}

0 个答案:

没有答案