Payflow_dotNET.dll & TLS level

swhall
New Community Member

I have Payflow_dotNET.dll (version 4.3.3.0) installed in the Global Assembly Cache on a Windows Server 2008 R2 machine.  This library is somehow determining the TLS level to use when connecting with the PayPal URL (either payflowpro.paypal.com or pilot-payflowpro.paypal.com).  How does this .dll determine the TLS level it will use?  Is there something in the environment that can be set to force the TLS level it uses?

Login to Me Too
2 REPLIES 2

MTS_Jennifer
Moderator
Moderator

Here is the updated dotNET Payflow SDK:

https://github.com/paypal/sdk-packages/tree/gh-pages/payflow-gateway/dotnet

 

The minimum dotNET framework needs to be 4.5 to be TLS 1.2 Compliant. If you use dotNET Framework 4.6 TLS 1.2 is automatically available.

 

You may need to add the below according to a dotNET Microsoft Blog

<httpRuntime targetFramework="4.5" />

Here is the Payflow Developer Guide just in case you need it.

 

Thank you,

Jennifer

Login to Me Too

GSDTesting
New Community Member

You do not need to switch .NET versions in order to comply with tls 1.2. The following code will set the environment to TLS 1.2 in < 4.5 .NET

 

System.Net.ServicePointManager.Expect100Continue = True
System.Net.ServicePointManager.SecurityProtocol = CType(3072, System.Net.SecurityProtocolType)
System.Net.ServicePointManager.DefaultConnectionLimit = 9999

 

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.