Skip to main content
3 of 7
added 471 characters in body
Alex
  • 14k
  • 19
  • 83
  • 167

How to fix "ThreeDomainSecure is not a function" during PayPal Credit Card Payment

We using the standard Magento 2 PayPal integration.

On the production site of our customer, we get an Javascript error "window.paypal.ThreeDomainSecure is not a function", and payment cannot continue.

This happens when trying to place an order with the inline VISA form on the Checkout (not when using an existing paypal account).

It also happens only on production, so we cannot reproduce that locally yet with the sandbox account.

We cannot find this line of code in the Magento code, so we believe the error comes from the components loaded from PayPal

Did anybody see this issue before and knows a solution or how to narrow it down?

Is it likely to be related to the PayPal account or a technical issue?

A bit debugging:

error message

Somhow the module seems to be there? but cannot be accessed

window.paypal

It seems to come all from PayPal? So no Magento issue? Can it be due to some server config?

script source

error message

Alex
  • 14k
  • 19
  • 83
  • 167