对paypal沙箱的HTTPS请求失败

问题描述 投票:1回答:3

我目前无法使用PayPal Sandbox来测试我的购物车集成。当我在浏览器中或通过curl访问沙箱时,我得到的只是连接错误。

这是curl-session的一个例子:

curl -v "https://api-3t.sandbox.paypal.com/nvp?user=test"
*   Trying 173.0.82.83...
* TCP_NODELAY set
* Connected to api-3t.sandbox.paypal.com (173.0.82.83) port 443 (#0)
* TLS 1.2 connection using TLS_RSA_WITH_AES_256_CBC_SHA256
* Server certificate: api-3t.sandbox.paypal.com
* Server certificate: Symantec Class 3 Secure Server CA - G4
* Server certificate: VeriSign Class 3 Public Primary Certification Authority - G5
> GET /nvp?user=test HTTP/1.1
> Host: api-3t.sandbox.paypal.com
> User-Agent: curl/7.51.0
> Accept: */*
> 
* SSLRead() return error -9806
* Curl_http_done: called premature == 1
* Closing connection 0
curl: (56) SSLRead() return error -9806

如果这是一个服务器端问题或我可以解决的问题的任何提示?

谢谢!

ssl paypal paypal-sandbox
3个回答
2
投票

看起来Paypal Express Checkout的NVP / SOAP集成方法是deprecated as of January 1, 2017。实时URL(https://api-3t.paypal.com/nvp)似乎现在可以工作,但这可能就是为什么沙箱不再起作用了。


0
投票

发现下面回答卷曲56错误。希望这可以帮助解决问题。

curl (56) Recv failure

PHP CURL Error - curl: (56) Recv failure: Connection reset by peer


0
投票

我并不完全理解为什么,但在向PayPal Sandbox提交数据时使用POST代替GET可以很好地解决问题。没有更奇怪的SSL错误。

© www.soinside.com 2019 - 2024. All rights reserved.