Support » Plugin: WooCommerce Square » JS Error on Checkout

  • Resolved chrisraymond


    Recently started having issues with the checkout page. My team reviewed and appears to be JS issues(Uncaught ReferenceError: WC_Square_Payment_Form_Handler is not defined) which means this class(WC_Square_Payment_Form_Handler) is not available in DOM. Not sure how to resolve as the JS file in in min form. Any ideas how to fix? Thanks in advance.

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Thomas Shellberg


    Automattic Happiness Engineer

    Hey @chrisraymond,

    I can see the error in the console on the site but I’m not having that problem on my test site. Are you running version 2.0.3?

    I’d try deleting and reinstalling the plugin and retesting.

    Hi @shellbeezy
    We are indeed running version 2.0.3 of this plugin. Also using the latest version of Woocommerce, and WordPress as well.

    Also, tried deleting and reinstalling but issue persists.

    Plugin Support Mike W


    Hi @chrisraymond,

    Thank you for the additional information! Testing this I too see the error on your site.

    Checking through my test site, I see some hidden fields but no errors. Due to this, have you switched out your theme to something like Storefront or Twenty Seventeen temporarily to see if the issue persists? There may be a javascript conflict there that is not happening on our side, which is why we are not able to replicate the issue.

    We do recommend a staging site for these tests so that your Live site is unaffected. You can reach out to your Host if you need to have a staging site set up, as they usually can assist you with this. Please let us know the results!

    Hi @nixiack8,
    Thank you for the recommendation. What we found was custom code in the Functions.php file “defer js” that caused the issue. Once we removed that, all worked as expected. Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.