对贝宝沙箱的 HTTPS 请求失败
HTTPS requests to paypal sandbox fail
我目前无法使用 PayPal 沙盒来测试我的购物车集成。当我在浏览器中或通过 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
如果这是服务器端问题或我可以解决的问题,有什么提示吗?
谢谢!
在下面找到 curl 56 错误的答案。希望能帮助解决问题。
curl (56) Recv failure
PHP CURL Error - curl: (56) Recv failure: Connection reset by peer
Paypal Express Checkout 的 NVP/SOAP 集成方法似乎 deprecated as of January 1, 2017. The live URL (https://api-3t.paypal.com/nvp) 目前似乎可以工作,但这可能是沙盒不再工作的原因。
我不太明白为什么,但是在向 PayPal 沙盒提交数据时使用 POST 而不是 GET 很好地解决了这个问题。不再奇怪 SSL-errors.
我目前无法使用 PayPal 沙盒来测试我的购物车集成。当我在浏览器中或通过 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
如果这是服务器端问题或我可以解决的问题,有什么提示吗?
谢谢!
在下面找到 curl 56 错误的答案。希望能帮助解决问题。
curl (56) Recv failure
PHP CURL Error - curl: (56) Recv failure: Connection reset by peer
Paypal Express Checkout 的 NVP/SOAP 集成方法似乎 deprecated as of January 1, 2017. The live URL (https://api-3t.paypal.com/nvp) 目前似乎可以工作,但这可能是沙盒不再工作的原因。
我不太明白为什么,但是在向 PayPal 沙盒提交数据时使用 POST 而不是 GET 很好地解决了这个问题。不再奇怪 SSL-errors.