Click here to Skip to main content
12,406,124 members (40,955 online)
Rate this:
Please Sign up or sign in to vote.
See more: ASP.NET PayPal
Hi All,

I am getting this exception "The request was aborted: Could not create SSL/TLS secure channel." at the time of ExpressCheckout at following line.
pp_response = (SetExpressCheckoutResponseType)caller.Call("SetExpressCheckout", pp_request);
using in the paypal sandbox Environment in version 53.0

Is anybody there who have any idea how to resolve it? Please Share with me.

Posted 1-Apr-13 20:40pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Never, ever, accept code from a insecure website to handle anything to do with real money.
You do not know who is giving you the code, you do not know what it does, you do not know that it places the monies correctly into the appropriate account, without passing the details to any third parties.

Only get such code from Paypal themselves - the scope for fraud otherwise is far too large. And remember, you personally could be liable for any monies lost if your action is seen to be negligent - which getting your code from a public forum would most certainly be!
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

I was also facing the same problem. Later i come to know after lots of analysis that Paypal has upgraded its TLS protocols(as per Link ).

Now for .NET 4.5 and higher, we can set the http webrequest protocol to TLS 1.2 to higher but .NET 4 or lower doesn't support TLS above TLS1. Hence the fix is directly assign the port for TLS1.2

ServicePointManager.Expect100Continue = true;
              ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
              ServicePointManager.DefaultConnectionLimit = 9999;
              OAuthTokenCredential tokenCredential = new OAuthTokenCredential(ConfigurationManager.AppSettings["PayPalClientID"].ToString(), ConfigurationManager.AppSettings["PayPalClientSecret"].ToString());
              string accessToken = tokenCredential.GetAccessToken();

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160726.1 | Last Updated 2 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100