Try our conversational search powered by Generative AI!

Per Nilsson
Jul 19, 2013
  5224
(3 votes)

Paypal provider for Commerce R2SP2

The API for PayPal has changed since the release of the provider so you will get an exception when trying to connect to paypal.

This is the error found in the log:


[ERROR] [com.paypal.sdk.exceptions.TransactionException] - The request was aborted: Could not create SSL/TLS secure channel.
com.paypal.sdk.exceptions.TransactionException: The request was aborted: Could not create SSL/TLS secure channel. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation

We havent gotten too many requests around the issue to the support but get one every now and then so wanted to share a few lines how to fix it in case you run into it during your project. The only thing needed is to override the default paypal settings like this.

Add the following to the <configSections> in web.config.

<section name="paypal" type="com.paypal.sdk.core.ConfigSectionHandler, paypal_base"/>

Then add the following <paypal> section and you are good to go.

<paypal>

<endpoints>

<wsdl>

<environment name="live">

<port name="PayPalAPI">https://api.paypal.com/2.0/</port>

<port name="PayPalAPIAA">https://api-aa.paypal.com/2.0/</port>

<port name="PayPalAPI" threetoken="true">https://api-3t.paypal.com/2.0/</port>

<port name="PayPalAPIAA" threetoken="true">https://api-aa-3t.paypal.com/2.0/</port>

</environment>

<environment name="sandbox">

<port name="PayPalAPI">https://api.sandbox.paypal.com/2.0/</port>

<port name="PayPalAPIAA">https://api-aa.sandbox.paypal.com/2.0/</port>

<port name="PayPalAPI" threetoken="true">https://api-3t.sandbox.paypal.com/2.0/</port>

<port name="PayPalAPIAA" threetoken="true">https://api-3t.sandbox.paypal.com/2.0/</port>

</environment>

<environment name="beta-sandbox">

<port name="PayPalAPI">https://api.beta-sandbox.paypal.com/2.0/</port>

<port name="PayPalAPIAA">https://api-aa.beta-sandbox.paypal.com/2.0/</port>

<port name="PayPalAPI" threetoken="true">https://api-3t.beta-sandbox.paypal.com/2.0/</port>

<port name="PayPalAPIAA" threetoken="true">https://api-3t.beta-sandbox.paypal.com/2.0/</port>

</environment>

</wsdl>

</endpoints>

</paypal>

Jul 19, 2013

Comments

Jul 23, 2013 10:27 PM

Simple enough! Thanks Per.

Please login to comment.
Latest blogs
Azure AI Language – Extractive Summarisation in Optimizely CMS

In this article, I demonstrate how extractive summarisation, provided by the Azure AI Language platform, can be leveraged to produce a set of summa...

Anil Patel | Apr 26, 2024 | Syndicated blog

Optimizely Unit Testing Using CmsContentScaffolding Package

Introduction Unit tests shouldn't be created just for business logic, but also for the content and rules defined for content creation (available...

MilosR | Apr 26, 2024

Solving the mystery of high memory usage

Sometimes, my work is easy, the problem could be resolved with one look (when I’m lucky enough to look at where it needs to be looked, just like th...

Quan Mai | Apr 22, 2024 | Syndicated blog

Search & Navigation reporting improvements

From version 16.1.0 there are some updates on the statistics pages: Add pagination to search phrase list Allows choosing a custom date range to get...

Phong | Apr 22, 2024

Optimizely and the never-ending story of the missing globe!

I've worked with Optimizely CMS for 14 years, and there are two things I'm obsessed with: Link validation and the globe that keeps disappearing on...

Tomas Hensrud Gulla | Apr 18, 2024 | Syndicated blog

Visitor Groups Usage Report For Optimizely CMS 12

This add-on offers detailed information on how visitor groups are used and how effective they are within Optimizely CMS. Editors can monitor and...

Adnan Zameer | Apr 18, 2024 | Syndicated blog