• Resolved Andrea

    (@lollipoppingu)


    Hello,

    I’m experiencing issues with your plugin on multiple websites where it is installed.
    When I reach the checkout and click on PayPal, the PayPal popup opens but remains stuck on the loading screen indefinitely.

    When the checkout page loads, several console errors appear, such as:

    “paypal_js_sdk_v5_unhandled_exception”

    “Uncaught Error: zoid destroyed all components https://www.paypal.com/sdk/js?client-id=XXX(I have censored this)&intent=capture&commit=true&components=buttons,messages,card-fields,googlepay,applepay&currency=EUR&enable-funding=paylater&locale=it_IT:3″

    The website in question is napoleonefood.com, but the same issue occurs on other websites as well.

    Could you please check this?

    Thank you, best regards.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @lollipoppingu

    Thank you for contacting Payment Plugins. I reviewed your checkout page and I can see the following Javascript error:

    Uncaught TypeError: Cannot read properties of undefined (reading 'regional')
    at datepicker-it.js?v1734447030&ver=6.9.1:18:12
    at datepicker-it.js?v1734447030&ver=6.9.1:13:3
    at datepicker-it.js?v1734447030&ver=6.9.1:15:4

    While I don’t believe that error is the root cause, you will want to resolve it.

    It looks to me like something is blocking the communication from your checkout page to the PayPal iframe associated with the PayPal button. Are you using any kind of cookie consent plugin on your site?

    Kind Regards

    Thread Starter Andrea

    (@lollipoppingu)

    Hello,
    I tried disabling all the plugins on the site, clearing the cache, and switching browsers, but nothing worked — the problem is still the same.
    I also tried resetting all the plugin settings and reconnecting PayPal, but that didn’t help either.

    Let me know, thank you

    Plugin Author Clayton R

    (@mrclayton)

    Hi @lollipoppingu

    Thank you for your reply. Based on troubleshooting you have done so far, it sounds like this is at the server level. I recommend updating your Content Security Policy (CSP) and adding paypal.com to the exclusion list.

    This would not be a PayPal plugin issue since it would not block the communication between your checkout page and the iframe that renders the buttons.

    Kind Regards

    Thread Starter Andrea

    (@lollipoppingu)

    Hi,
    We tried asking the server, but they said:
    “We have no issues with this, and we don’t see any error logs reporting anything.”

    We’re also having this problem on other sites with different servers. What could be the cause?

    Thank you

    Plugin Author Clayton R

    (@mrclayton)

    Hi @lollipoppingu

    We’re also having this problem on other sites with different servers. What could be the cause?

    If it’s the same hosting provider then that makes sense. Per my previous reply, I would start by updating your CSP and see if that resolves the issue.

    What I recommend you do for now is enable the “Use place order button” option. https://paymentplugins.com/documentation/paypal/paypal-settings/#use-place-order-button

    That option will redirect the customer to the PayPal payment page, rather than rendering the PayPal buttons on your checkout page. That will circumvent any CSP issues and allow you to accept PayPal payments while you troubleshoot the root cause.

    Update: I see you’re now using the WooCommerce PayPal Payments plugin and the issue is still present, which confirms it’s not a problem with our PayPal plugin.

    Kind Regards

    • This reply was modified 5 months ago by Clayton R.
    Thread Starter Andrea

    (@lollipoppingu)

    Hi,
    no, they’re different hosting providers.
    The “Use place order button” setting was already active.
    Actually, we’re having no problems with the WooCommerce PayPal Payments plugin; payments proceed without errors, but we’d like to continue using your plugin because it’s much better.
    We’ve also activated your plugin on several sites, and the problem occurs on others as well.
    Fortunately, it’s not present on all of them, but that’s the strangest thing.
    For example, we have this other site: birraspalmabile.com with the same hosting provider, theme, and plugin as napoleonefood.com (actually, there are even more plugins on birraspalmabile.com).
    And on birraspalmabile.com, everything works fine without any problems.
    Even the settings and plugin version are the same.
    We don’t understand what the problem could be.
    Thank you, best regards

    Plugin Author Clayton R

    (@mrclayton)

    Hi @lollipoppingu

    The “Use place order button” setting was already active.

    If that option were enabled, then the PayPal JS script wouldn’t be loading since it’s not needed for that option. When that option is enabled, the plugin uses the Place Order button rather than rendering the PayPal buttons.

    Actually, we’re having no problems with the WooCommerce PayPal Payments plugin;

    That doesn’t mean it’s an issue with our plugin; that could just mean that the cache hasn’t modified those scripts yet which is common.

    Can you please create a support ticket via the WordPress Admin > WooCommerce > PayPal > Support page? That will create a ticket within our support platform and we can assist you there.

    Kind Regards

    Thread Starter Andrea

    (@lollipoppingu)

    Done,

    Thank you

Viewing 8 replies - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.