Title: Payments not working &#8211; AUTHENTICATION_ERROR
Last modified: April 24, 2018

---

# Payments not working – AUTHENTICATION_ERROR

 *  Resolved [myhreco](https://wordpress.org/support/users/myhreco/)
 * (@myhreco)
 * [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/)
 * I’m having the same problem with payments not working that somebody else was 
   having, but reading the other thread, none of the resolutions worked or applied.
   Square payments aren’t going through – full error message is below.
 * All requirements are good on my system – SQL 5.6, PHP 7.0, I tried linking and
   unlinking to square and nothing has worked.
 * ERROR MESSAGE:
 * Array
    ( [0] => stdClass Object ( [category] => AUTHENTICATION_ERROR [code] =
   > UNAUTHORIZED [detail] => This request could not be authorized. ) ) Order status
   changed from Pending payment to Failed.

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

 *  Plugin Support [Yuki K a11n.](https://wordpress.org/support/users/yukikatayama/)
 * (@yukikatayama)
 * Automattic Happiness Engineer
 * [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/#post-10222131)
 * Hi there,
 * You mentioned unlinking/linking the Square account – was this just within the
   plugin settings? Could you also try disconnecting the actual plugin and reactivating
   it to see if it helps?
 * Could you also copy/paste your system status report?
 *  Thread Starter [myhreco](https://wordpress.org/support/users/myhreco/)
 * (@myhreco)
 * [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/#post-10222587)
 * Hi,
 * I just tried deactivating and reactivating the Square plugin and it didn’t change
   anything. I turned on error logging during this last test, and below is what 
   the error log is showing. Will get system report too if below doesn’t help.
 * 2018-02-22T15:55:15+00:00 CRITICAL Uncaught TypeError: Argument 1 passed to WC_Square_Sync_To_Square::
   sync_inventory() must be an instance of WC_Product, boolean given, called in /
   home/micheles/public_html/wp-content/plugins/woocommerce-square/includes/class-
   wc-square-sync-to-square-wp-hooks.php on line 287 and defined in /home/micheles/
   public_html/wp-content/plugins/woocommerce-square/includes/class-wc-square-sync-
   to-square.php:221
    Stack trace: #0 /home/micheles/public_html/wp-content/plugins/
   woocommerce-square/includes/class-wc-square-sync-to-square-wp-hooks.php(287):
   WC_Square_Sync_To_Square->sync_inventory(false) #1 /home/micheles/public_html/
   wp-includes/class-wp-hook.php(300): WC_Square_Sync_To_Square_WordPress_Hooks-
   >on_variation_set_stock(Object(WC_Product_Variation)) #2 /home/micheles/public_html/
   wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #3 /home/
   micheles/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #
   4 /home/micheles/public_html/wp-cron.php(117): do_action_ref_array(‘wc_square_on_va…’
 * 2018-02-23T06:13:04+00:00 CRITICAL Uncaught TypeError: Argument 1 passed to WC_Square_Sync_To_Square::
   sync_inventory() must be an instance of WC_Product, boolean given, called in /
   home/micheles/public_html/wp-content/plugins/woocommerce-square/includes/class-
   wc-square-sync-to-square-wp-hooks.php on line 287 and defined in /home/micheles/
   public_html/wp-content/plugins/woocommerce-square/includes/class-wc-square-sync-
   to-square.php:221
    Stack trace: #0 /home/micheles/public_html/wp-content/plugins/
   woocommerce-square/includes/class-wc-square-sync-to-square-wp-hooks.php(287):
   WC_Square_Sync_To_Square->sync_inventory(false) #1 /home/micheles/public_html/
   wp-includes/class-wp-hook.php(300): WC_Square_Sync_To_Square_WordPress_Hooks-
   >on_variation_set_stock(Object(WC_Product_Variation)) #2 /home/micheles/public_html/
   wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters(”, Array) #3 /home/
   micheles/public_html/wp-includes/plugin.php(515): WP_Hook->do_action(Array) #
   4 /home/micheles/public_html/wp-cron.php(117): do_action_ref_array(‘wc_square_on_va…’
 *  Plugin Support [dougaitken](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/#post-10243941)
 * Hi [@myhreco](https://wordpress.org/support/users/myhreco/)
 * That doesn’t look good, were you able to resolve this? Can you confirm you’re
   on the latest version of the extension, `1.0.29`, please?
 * Have you reached out to us at WooCommerce.com about this? We can help with Square
   queries there.
 * Thanks,
 *  Thread Starter [myhreco](https://wordpress.org/support/users/myhreco/)
 * (@myhreco)
 * [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/#post-10244821)
 * Hi – no, it hasn’t been resolved yet. We just started using the PayPal plugin
   instead of Square for now. I checked and yes, I’ve been testing using the latest
   Ver. 1.0.29 of the plugin. Where on WooCommerce.com would I submit a question
   about this plugin – in the support ticket section?
 * Thanks for any info.
 *  Plugin Support [dougaitken](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/#post-10245508)
 * Hi again [@myhreco](https://wordpress.org/support/users/myhreco/)
 * Okay, if you head to WooCommerce.com, you can submit a ticket via [https://woocommerce.com/my-account/create-a-ticket/](https://woocommerce.com/my-account/create-a-ticket/)
 * If you don’t have the option to select Square from the WooCommercee Extensions
   menu then please “purchase” the extension for free on the site, and you’ll then
   have that option – [https://www.woocommerce.com/products/square/](https://www.woocommerce.com/products/square/)
 * Please be sure to include details and a system status report when you do.
 * Thanks,
 *  Plugin Support [dougaitken](https://wordpress.org/support/users/dougaitken/)
 * (@dougaitken)
 * Automattic Happiness Engineer
 * [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/#post-10274875)
 * Hi [@myhreco](https://wordpress.org/support/users/myhreco/)
 * Did you get a ticket to us for help with the problem?
 * We haven’t heard back from you in a while, so I’m going to mark this as resolved–
   if you have any further questions, please let us know.
 * Thanks,
 *  Thread Starter [myhreco](https://wordpress.org/support/users/myhreco/)
 * (@myhreco)
 * [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/#post-10275900)
 * Yes, I moved my question over to a WooCommerce support ticket. Problem is resolved,
   but I have no idea how it happened. I just deleted and reinstalled the plugin
   3 or 4 times, and then it suddenly was working. So, I have no solutions for other
   people to try if they have this issue, but I’m all set now. Thanks!

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

The topic ‘Payments not working – AUTHENTICATION_ERROR’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-square/assets/icon-256x256.png?rev=3234354)
 * [WooCommerce Square](https://wordpress.org/plugins/woocommerce-square/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-square/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-square/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-square/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-square/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-square/reviews/)

 * 7 replies
 * 3 participants
 * Last reply from: [myhreco](https://wordpress.org/support/users/myhreco/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/payments-not-working-authentication_error/#post-10275900)
 * Status: resolved