2012-10-23 89 views
7

我正在测试我正在制作的网站的paypal API。一切工作正常,昨晚,但是当我今天又跑了,我收到以下错误:Paypal Sandbox MVC3

Could not establish secure channel for SSL/TLS with authority 'api-aa.sandbox.paypal.com'

回答

11

有同样的。尝试使用http://api-3t.sandbox.paypal.com/来代替。 它帮助了我。我发现它在这里:setExpressCheckout and SSL/TLS error

If you don't have or are not using an API certificate, you should connect to api-3t.paypal.com or api-3t.sandbox.paypal.com for Live or Sandbox respectively.

+2

我打电话给贝宝,他们让我知道他们的最新API在他们的错误。无论它说 api.sandbox.paypal.com或api-aa-.sandbox.paypa.com 需要切换到阅读: api-3t.sandbox.paypal.com或API-AA-3T。 sandbox.paypa.com 所以你几乎是正确的,非常感谢。 – Solid1Snake1

2

我一直在争取这个同样的问题现在几个小时;在使用SOAP API编写PayPal Express checkout集成之后,签署一年前将其置于后台(当时所有单元测试都通过)。我今天回来给它的错误:

Could not establish secure channel for SSL/TLS with authority 'api-3t.sandbox.paypal.com'

经过一番研究,我在我们的情况是下降到默认ServicePointManager.SecurityProtocol值为System.Net.SecurityProtocolType.Ssl3 | System.Net.SecurityProtocolType.Tls,更新这SecurityProtocolType.Tls12将问题解决了该问题。

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;