Upgrade PaypalDirect plugin to support TLS1.2

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
8 anni tempo fa
It's required to update the PaypalDirect plugin to support TLS1.2. Otherwise the following error will occur

The request was aborted: Could not create SSL/TLS secure channel

Quick Fix:

Those using the existing plugins and facing the issue can fix the issue by adding the following line to their PaypalDirect plugin.

File Name: PaypalDirectPaymentProcessor.cs

Changes:

Add the following code (in bold). Line number 209

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var service = GetService();
DoDirectPaymentResponseType response = service.DoDirectPayment(req);
8 anni tempo fa
Hi Anshul,

Thanks a lot! I've just created a work item here
8 anni tempo fa
I am working on nopCommerce v3.6.

I am using my local VS2013 environment for development and the PayPal Sandbox settings for the plugin.

I change the code as suggested. But I still get the same error (this is in my local environment using VS2013 with sandbox settings). I am running site as http://localhost:portName in http mode (IIS Express)

Below is the notification from Pay Pal in this regards

https://devblog.paypal.com/paypal-ssl-certificate-changes/

I have installed VeriSign certificate but the integration is failing. I am searching around it and keep you posted but let us know if you get through this issue with possible steps to resolve this issue.

Thanks,

DK
8 anni tempo fa
Are you getting the same error as above or some other one. Please let us know
8 anni tempo fa
I am getting below error. We are using PayPal Sandbox environment and it is on my local machine (I am running website using VS2013). The response is

"Invalid HTTP response The request was aborted: Could not create SSL/TLS secure channnel".

Thanks,

DK
8 anni tempo fa
Have you already applied the fix that RoastedBytes suggested above?
8 anni tempo fa
Yes, I did the suggested changes.

Add the following code (in bold). Line number 209


ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
var service = GetService();
DoDirectPaymentResponseType response = service.DoDirectPayment(req);

Thanks,

DK
8 anni tempo fa
dtkubal wrote:
Yes, I did the suggested changes.


Have you rebuilt the plugin project. Also try to restart the application once to see if it works.
8 anni tempo fa
I am running it in my Local Development environment (VS2013), I put debugger around it and able to hit that code line.

Thanks,

DK
8 anni tempo fa
dtkubal wrote:
I am running it in my Local Development environment (VS2013), I put debugger around it and able to hit that code line.

Thanks,

DK


Please check your web server. Maybe it don't support TLS 1.2

I have tested it in my project. It works.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.