PayPal Sandbox API SSL握手错误突然开始使用PayPal PHP SDK? [英] PayPal Sandbox API SSL handshake error suddenly started using PayPal PHP SDK?

查看:117
本文介绍了PayPal Sandbox API SSL握手错误突然开始使用PayPal PHP SDK?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

到目前为止,我已经使用新的PayPal PHP SDK成功地使用PayPal的沙箱进行了开发,该SDK已预先配置为使用此沙箱URL:

Up until today, I have been successfully developing with PayPal's sandbox using the new PayPal PHP SDK which comes preconfigured to use this sandbox URL:

https://api.sandbox.paypal.com/2.0/
(Chrome中的URL当前返回:错误107(net :: ERR_SSL_PROTOCOL_ERROR):SSL协议错误.")

https://api.sandbox.paypal.com/2.0/
(URL in Chrome currently returns: "Error 107 (net::ERR_SSL_PROTOCOL_ERROR): SSL protocol error.")

但是今天,我的Web应用由于SSL握手失败而崩溃: Uncaught exception 'PPConnectionException' with message 'error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure' in ./paypal-sdk-1.0.92/lib/PPHttpConnection.php:185

But today my webapp is crashing due to a SSL handshake failure: Uncaught exception 'PPConnectionException' with message 'error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure' in ./paypal-sdk-1.0.92/lib/PPHttpConnection.php:185

自昨天(我的Web应用程序上次运行时)以来发生的唯一事件是我重置了沙箱卖方"帐户,该帐户可能已重置了API凭据

The only event that has occurred since yesterday (when my webapp was last working) was I reset my sandbox "seller" account, which may have reset the API credentials according to this post. Since I've updated the API credentials manually, and have verified them to be correct, I cannot say if they were ever wrong at this point.

经过大量搜索,我发现其他Web文章指出URL应该是:

After lots of searching, I found other web articles that say the URL should be:

https://api-3t.sandbox.paypal.com/2.0/
(Chrome中的URL返回SOAP响应.)

https://api-3t.sandbox.paypal.com/2.0/
(URL in Chrome returns a SOAP response.)

因此,我从 https://api.sandbox.paypal更改了我的PayPal PHP SDK包含的URL. com/2.0/ https://api-3t.sandbox.paypal. com/2.0/,它再次正常运行.这里发生了什么?非3t沙箱网址现在是否已被破坏?

So I changed my PayPal PHP SDK's included URL from https://api.sandbox.paypal.com/2.0/ to https://api-3t.sandbox.paypal.com/2.0/ and it is working perfectly again. What happened here? Is the non-"3t" sandbox URL simply broken right now?

编辑:在收到@Win和@JoelP的反馈后,我已经提交了

After the feedback received from @Win and @JoelP, I have filed a bug report through the PayPal SDK github so someone at PayPal can explain what changed today and fix the SDK to have the correct URL when using Signature credentials.

PayPal几天前解决了该问题.它将在下一个版本中提供. https://github.com/paypal/SDKs/issues/22#issuecomment- 8660682

EDIT 2: PayPal fixed the issue a few days ago. It's going to be available in the next release. https://github.com/paypal/SDKs/issues/22#issuecomment-8660682

感谢大家的帮助.

推荐答案

差异在

签名是首选的访问方式贝宝(PayPal)API.

Signature is the preferred way of accessing PayPal API.

这篇关于PayPal Sandbox API SSL握手错误突然开始使用PayPal PHP SDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆