Sandpit Paypal MVC3

I tested the paypal API for the website that I am doing. Everything worked fine last night, but when I started it again today, I got the following error:

Failed to establish secure channel for SSL / TLS with authority "api-aa.sandbox.paypal.com"

+7
source share
2 answers

It was the same. Try using http://api-3t.sandbox.paypal.com/ instead. It helps me. I found it here: setExpressCheckout and SSL / TLS error

If you do not have or do not have an API certificate, you must connect to api-3t.paypal.com or api-3t.sandbox.paypal.com for Live or Sandbox respectively.

+11
source

I have been fighting for the same problem for several hours; After writing Checkout PayPal Express integration using a SOAP API with a signature more than a year ago, it was put in the background (all unit tests running at that time). Today I return to the error:

Failed to set secure channel for SSL / TLS with authority "api-3t.sandbox.paypal.com"

After much research, I highlighted the problem in our instance to ServicePointManager.SecurityProtocol by default, ServicePointManager.SecurityProtocol , updating this to SecurityProtocolType.Tls12 , fixed the problem.

 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; 
+2
source

All Articles