duanjiong2021 2013-05-21 08:47
浏览 224
已采纳

为什么PayPal会间歇性地提供SSL错误?

I'm using PayPal to take payments on my website.

30% of IPNs bail out with the following cURL error. It works fine the other 70% of the time.

Unknown SSL protocol error in connection to www.paypal.com:443

I've tried using SSLv3 to no avail.

Here are my PHP cURL settings, based on Micah Carrick's IPN listener script.

<?php 
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
curl_setopt($ch, CURLOPT_CAINFO, dirname(__FILE__)."/cert/api_cert_chain.crt");
curl_setopt($ch, CURLOPT_URL, 'https://www.paypal.com/cgi-bin/webscr/' );
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $encoded_data);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);
curl_setopt($ch, CURLOPT_TIMEOUT, 45);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, true);
  • 写回答

1条回答 默认 最新

  • dthl8036 2013-05-22 08:24
    关注

    Not sure. We're not seeing anything on our end.
    Can you change your 'CURLOPT_URL' to https://ipnpb.paypal.com/cgi-bin/webscr and try with that for a little bit?

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺