2

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

window.paypal.ThreeDomainSecure
undefined

EDIT is it maybe related to CSP blocks? Can I even influence that? The checkout.js mentioned is also loaded from PayPal.

CSPerrors

EDIT it seems to be related to the PayPal account, as we cannot reproduce it with a sandbox account. There is a PayPal support case open, still we try to rule out issues on our side.

4
  • What does window.paypal.ThreeDomainSecure (no ()) yield in the console?
    – kolaente
    Commented Jan 15, 2021 at 11:43
  • @kolaente "undefined"
    – Alex
    Commented Jan 15, 2021 at 11:54
  • But it shows up in window.paypal? Strange.
    – kolaente
    Commented Jan 15, 2021 at 11:57
  • @kolaente but under "Module".. but also window.Module.paypal is not existing
    – Alex
    Commented Jan 15, 2021 at 12:25

1 Answer 1

0

PayPal changed something, not it works - seems like a problem on their side.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.