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.
(@yukikatayama)
Automattic Happiness Engineer
Hi @bsktbllsam,
Could you please clear any plugin or server-side cache you may have and also do a theme and plugin conflict test to see if there’s a third party plugin/theme that is conflicting with Square during checkout?
Thanks!
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.
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.
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/
Please create a full backup of your site before adding any custom code to your site.
Hope it helps!
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.