Nuvei / nuvei-plugin-woocommerce

WooCommerce plugin with CheckOut SDK
1 stars 2 forks source link

JS error "Automatic publicPath is not supported in this browser" in version 3.0.1 #6

Closed gbakeman closed 4 months ago

gbakeman commented 4 months ago

Similar to issue #5, there's an incompatibility introduced, this time between updates 3.0.0 and 3.0.1, with WooCommerce Points & Rewards v1.8.5 and potentially other plugins (see below). When loading the Checkout page for the first time, this error is printed to the browser console:

Uncaught Error: Automatic publicPath is not supported in this browser
    <anonymous> /checkout/ line 2 > injectedScript:38
    <anonymous> /checkout/ line 2 > injectedScript:38
    <anonymous>/checkout/ line 2 > injectedScript:45
    jQuery 13
    <anonymous> /wp-content/plugins/nuvei-plugin-woocommerce/assets/js/nuvei_public.js?ver=1:311
    jQuery 13
line 2 > injectedScript:38:5685

If I try to click the Continue button to go to the payment details screen, I see this:

Uncaught ReferenceError: simplyConnect is not defined
    showNuveiCheckout /wp-content/plugins/nuvei-plugin-woocommerce/assets/js/nuvei_public.js?ver=1:175
    <anonymous> /checkout/ line 2 > injectedScript:1
    jQuery 3
    submit_error /wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=9.0.0:1
    success /wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=9.0.0:1
    jQuery 8
    submit /wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=9.0.0:1
    jQuery 10
    init /wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=9.0.0:1
    <anonymous> /wp-content/plugins/woocommerce/assets/js/frontend/checkout.min.js?ver=9.0.0:1
    jQuery 13
nuvei_public.js:175:2

However, unlike the last issue, this one is not easily resolved by changing the checkout mode - it occurs with Checkout SDK and cashier modes. I hope there's still something that can be done on this side to resolve the incompatibility with WooCommerce's Points & Rewards.

odeland commented 4 months ago

We had the same problem in production. Nobody was able to checkout using Nuvei Checkout. We do not have WooCommerce's Points & Rewards plugin installed. The same JavaScript errors posted above come up in the browser's console. We had to revert back to version 3.0.0 of the plugin.

gbakeman commented 4 months ago

@odeland Thanks for confirming so I know it's not just me! It's interesting to find that you don't have the same plugin as me. Do you think you might have the time to test and isolate which, if any, plugin Nuvei may be conflicting with? I've been able to restore normal functionality by disabling the conflicting plugin on my end. I also want to recommend that you reach out to the Nuvei Integration Support team at integration-international@nuvei.com. They've been assisting me with integration and also interfacing with the developers who manage this plugin.

miroslav-sc commented 4 months ago

I am sorry for the problem, but it is impossible to test our plugin how behave with all available plugins for Wordpress/Woocommerce. The only plugins we test for compatibility are mentioned in the documentation. I will report you problem, but cannot promise it will be solved.

miroslav-sc commented 3 months ago

Guys, I checked Points & Rewards plugin with our plugin v3.0.3 and wasn't able to reproduce the problem. Can you also check and send feedback if the problem was solved?

gbakeman commented 3 months ago

@miroslav-sc It looks like you've fixed the incompatibility with WC P&R and full Checkout SDK is now working, thank you!