Title: Square Payment Failed (Status code BAD_REQUEST: INTENT_MISMATCH)
Last modified: March 23, 2020

---

# Square Payment Failed (Status code BAD_REQUEST: INTENT_MISMATCH)

 *  Resolved [bsktbllsam](https://wordpress.org/support/users/bsktbllsam/)
 * (@bsktbllsam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-bad_request-intent_mismatch/)
 * The Log shows this message:
 * 2020-02-26T18:11:46+00:00 CRITICAL Uncaught Error: Call to a member function 
   is_type() on bool in /var/www/wptbox/wp-content/plugins/woocommerce/includes/
   class-wc-ajax.php:1272
    Stack trace: #0 /var/www/wptbox/wp-includes/class-wp-
   hook.php(288): WC_AJAX::remove_order_item(”) #1 /var/www/wptbox/wp-includes/class-
   wp-hook.php(312): WP_Hook->apply_filters(”, Array) #2 /var/www/wptbox/wp-includes/
   plugin.php(478): WP_Hook->do_action(Array) #3 /var/www/wptbox/wp-admin/admin-
   ajax.php(175): do_action(‘wp_ajax_woocomm…’) #4 {main} thrown in /var/www/wptbox/
   wp-content/plugins/woocommerce/includes/class-wc-ajax.php on line 1272

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

 *  Thread Starter [bsktbllsam](https://wordpress.org/support/users/bsktbllsam/)
 * (@bsktbllsam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-bad_request-intent_mismatch/#post-12575906)
 * Every purchase since updating is getting this failed payment message. I am having
   to immediately send an invoice and the payment. What do I do?
 *  Plugin Support [Yuki K a11n.](https://wordpress.org/support/users/yukikatayama/)
 * (@yukikatayama)
 * Automattic Happiness Engineer
 * [6 years, 2 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-bad_request-intent_mismatch/#post-12582758)
 * Hi [@bsktbllsam](https://wordpress.org/support/users/bsktbllsam/),
 * Could you please clear any plugin or server-side cache you may have and also 
   do a [theme and plugin conflict test](https://docs.woocommerce.com/document/how-to-test-for-conflicts/)
   to see if there’s a third party plugin/theme that is conflicting with Square 
   during checkout?
 * Thanks!
 *  Thread Starter [bsktbllsam](https://wordpress.org/support/users/bsktbllsam/)
 * (@bsktbllsam)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-bad_request-intent_mismatch/#post-12614133)
 * Hello,
 * I deleted the square plugin and did a fresh install. This worked for 48 hours
   and it is back to the same problem again.
 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-bad_request-intent_mismatch/#post-12654008)
 * > I deleted the square plugin and did a fresh install. This worked for 48 hours
   > and it is back to the same problem again.
 * Thank you for getting back to us with your findings, but it is still unclear 
   if the caching plugins/server-level caching were deactivated while testing this.
   Can you please get back to us with confirmation on that?
 * —
 * Also, could you please share a copy of your site’s System Status? You can find
   it via WooCommerce > Status.
    Select “Get system report” and then “Copy for support”.
   Once you’ve done that, paste it here in your response.
 * Along with that, please also get back to us with the Square logs. You can enable
   them from WooCommerce > Settings > Payments > Square.
 * Once you’ve enabled them, please attempt to make a test order and get back to
   us with the square payment logs from WooCommerce > Status > Logs
 * _Please redact any personal information from the logs before sharing it here_
 * Thank you for working with us on this.
 *  [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * (@treibalen)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/square-payment-failed-status-code-bad_request-intent_mismatch/#post-12677691)
 * Hi there!
 * I’ve reported the error you’re seeing (BAD_REQUEST: INTENT_MISMATCH) to our developers
   and they will investigate it further.
 * Meanwhile, adding the following code to your site should stop it from happening:
 * `add_filter( 'wc_square_is_3d_secure_enabled', '__return_false', 0, 1 );`
 * Please add it to your child theme’s functions.php file. Alternatively, you can
   use the Code Snippets plugin to do that: [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)
 * Please create a full backup of your site before adding any custom code to your
   site.
 * Hope it helps!
 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/square-payment-failed-status-code-bad_request-intent_mismatch/#post-12763306)
 * 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, you can start a new thread.

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

The topic ‘Square Payment Failed (Status code BAD_REQUEST: INTENT_MISMATCH)’ 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/)

 * 6 replies
 * 4 participants
 * Last reply from: [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/square-payment-failed-status-code-bad_request-intent_mismatch/#post-12763306)
 * Status: resolved