• Resolved garethkaha

    (@garethkaha)


    I’m having a problem with Woocommerce Square not processing a user’s credit card, but no error message is being returned. Site is not yet live, hence no link added.

    The payments page has been set up on a site with an SSL certificate, and the plugin is linked to a fully working Square account. Can’t find anything on the forum quite like this. Any help much appreciated!

    Error log:

    Uncaught Error: Call to a member function getLocations() on string in /***/***/public_html/***/wp-content/plugins/woocommerce-square/includes/API/Responses/Locations.php:51

    Stack trace:
    #0 /***/***/public_html/***/wp-content/plugins/woocommerce-square/includes/API.php(609): WooCommerce\Square\API\Responses\Locations->get_locations()
    #1 /***/***/public_html/***/wp-content/plugins/woocommerce-square/includes/Settings.php(608): WooCommerce\Square\API->get_locations()
    #2 /***/***/public_html/***/wp-content/plugins/woocommerce-square/includes/Settings.php(263): WooCommerce\Square\Settings->get_locations()
    #3 /***/***/public_html/***/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-settings-api.php(266): WooCommerce\Square\Settings->get_form_fields()
    #4 /***/***/public_html/***/wp-content/plugins/woocommerce-square/includes/Settings.php(80): WC_Settings_API->init_settings()
    #5 /***/***/pub in /***/***/public_html/***/wp-content/plugins/woocommerce-square/includes/API/Responses/Locations.php on line 51

Viewing 5 replies - 1 through 5 (of 5 total)
  • AJ a11n

    (@amandasjackson)

    Hi @garethkaha

    Can you go to WooCommerce>Settings>Square and double check to make sure you have the correct location set here:


    Link to image: https://cld.wthms.co/kXqxZW

    Square can only accept transactions from the following countries: US, CA, UK, AU, and JP. If your shop base address is in a different country, you can’t process transactions with Square. You can view and modify your shop location from WooCommerce > Settings > General.

    Thread Starter garethkaha

    (@garethkaha)

    Thanks for the response. Yes, it is set to the correct location. It’s a UK shop which uses Square as its POS service.

    AJ a11n

    (@amandasjackson)

    @garethkaha

    Thanks for confirming.

    This could be caused by either a conflict with your theme or with another plugin.
    The best way to determine this is to:
    ?

    • Temporarily switch your theme to Storefront
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Thread Starter garethkaha

    (@garethkaha)

    Hi, I’ve identified that there was a conflict with Elementor.

    This was due to the fact that the Checkout page had been edited using Elementor, rather than just being a simple WordPress page. I removed the Elementor-added formating and that fixed the problem.

    Thanks for your help.

    AJ a11n

    (@amandasjackson)

    Hi @garethkaha

    Glad to hear it – thanks for letting us know!

    If you have any further questions, I recommend creating a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Payments not processing – no error messages for user’ is closed to new replies.