Click here to Skip to main content
15,880,956 members
Please Sign up or sign in to vote.
1.44/5 (2 votes)
See more:
C#
Paypal Sdk throwing error "The request was aborted: Could not create SSL/TLS secure channel" while it was working fine in past. Let me know if there is any solution to that. Note I am using .NET Framework 4.0.
Posted

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 - 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!

Give them a try - their tech support isn't bad.
 
Share this answer
 
C#
ServicePointManager.Expect100Continue = true;
              ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072;
              ServicePointManager.DefaultConnectionLimit = 9999;
 
<pre>
          OAuthTokenCredential tokenCredential = new OAuthTokenCredential(ConfigurationManager.AppSettings["PayPalClientID"].ToString(), ConfigurationManager.AppSettings["PayPalClientSecret"].ToString());
          string accessToken = tokenCredential.GetAccessToken();</pre>
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900