贝宝IPN卷曲问题
问题描述:
直到最近:9月下旬PayPal IPN一直工作正常。但是,最近它已经停止。检查代码,它都很好。贝宝IPN卷曲问题
try {
$listener->requirePostMethod();
$verified = $listener->processIpn();
mail('###@###.com', 'what is the verified value?', $verified);
} catch (Exception $e) {
mail('####@####.co.uk', 'error', $e->getMessage());
error_log($e->getMessage());
exit(0);
}
的代码块我走在结帐过程后,将尝试processIPN方法。但是,Catch部分得到执行。在电子邮件中,我收到错误消息,
cURL error: [60] SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed.
我猜贝宝可能已经更新了他们的安全措施等。我怎样才能解决这个问题?
答
临时解决方法:迁移到ipnpb.paypal.com。该端点将保持在SHA-1上,直到2016年第二季度,并可用作备用IPN处理点。
包括您的CURL请求 – Machavity
http://pastebin.com/L4K3QRdF –