BAD_REQUEST: INTENT_MISMATCH Error
-
Lately I have been getting 3-4 of the following errors: “Square Payment Failed (Status code BAD_REQUEST: INTENT_MISMATCH) Order status changed from Pending payment to Failed.” After doing more digging im unable to find what the cause of this error is. Please advise so I can dig deeper. Thanks!
-
Hi there @thalights,
Thanks for reaching out!
Did you notice any patterns in which orders failed? Are they created by guests or registered users? Were you able to replicate it by placing a test order?
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.Cheers!
No patterns noticed. Orders are created by guests and no I cannot replicate it but it is happening frequently enough.
### WordPress Environment ### WordPress address (URL): https://tlgacademy.com Site address (URL): https://tlgacademy.com WC Version: 4.4.1 REST API Version: ? 1.0.15 WC Blocks Version: ? 3.1.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.4.0 Log Directory Writable: ? WP Version: 5.5 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: nginx/1.14.0 PHP Version: 7.4.9 PHP Post Max Size: 750 MB PHP Time Limit: 300 PHP Max Input Vars: 3000 cURL Version: 7.58.0 OpenSSL/1.1.1g SUHOSIN Installed: – MySQL Version: 5.7.31-0ubuntu0.18.04.1 Max Upload Size: 500 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.4.1 WC Database Prefix: tlg_ Total Database Size: 141.93MB Database Data Size: 130.76MB Database Index Size: 11.17MB tlg_woocommerce_sessions: Data: 76.02MB + Index: 0.08MB + Engine InnoDB tlg_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tlg_woocommerce_order_items: Data: 0.08MB + Index: 0.02MB + Engine InnoDB tlg_woocommerce_order_itemmeta: Data: 0.52MB + Index: 0.47MB + Engine InnoDB tlg_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tlg_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_actionscheduler_actions: Data: 3.02MB + Index: 1.22MB + Engine InnoDB tlg_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_actionscheduler_logs: Data: 2.02MB + Index: 1.30MB + Engine InnoDB tlg_bwf_actions: Data: 0.02MB + Index: 0.09MB + Engine InnoDB tlg_bwf_action_claim: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_bwf_contact: Data: 0.08MB + Index: 0.09MB + Engine InnoDB tlg_bwf_contact_meta: Data: 0.19MB + Index: 0.00MB + Engine InnoDB tlg_bwf_wc_customers: Data: 0.06MB + Index: 0.03MB + Engine InnoDB tlg_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_comments: Data: 0.48MB + Index: 0.45MB + Engine InnoDB tlg_elfsight_logo_showcase_widgets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_fsq_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_fsq_data: Data: 0.25MB + Index: 0.02MB + Engine InnoDB tlg_fsq_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_fsq_form: Data: 0.23MB + Index: 0.00MB + Engine InnoDB tlg_fsq_payment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_ihc_cheat_off: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_coupons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_dashboard_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_debug_payments: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_download_monitor_limit: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_gift_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_invitation_codes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_notifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_ihc_orders_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_ihc_reason_for_cancel_delete_levels: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_security_login: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_taxes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_user_levels: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_ihc_user_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_ihc_user_sites: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_woo_products: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_ihc_woo_product_level_relations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_imagify_files: Data: 0.02MB + Index: 0.08MB + Engine InnoDB tlg_imagify_folders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_indeed_members_payments: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_options: Data: 5.02MB + Index: 0.17MB + Engine InnoDB tlg_postmeta: Data: 21.09MB + Index: 4.83MB + Engine InnoDB tlg_posts: Data: 19.20MB + Index: 0.42MB + Engine InnoDB tlg_po_plugins: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tlg_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB tlg_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB tlg_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tlg_wap_nex_forms: Data: 0.00MB + Index: 0.00MB + Engine MyISAM tlg_wap_nex_forms_email_templates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM tlg_wap_nex_forms_entries: Data: 0.00MB + Index: 0.00MB + Engine MyISAM tlg_wap_nex_forms_files: Data: 0.00MB + Index: 0.00MB + Engine MyISAM tlg_wap_nex_forms_stats_interactions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM tlg_wap_nex_forms_views: Data: 0.00MB + Index: 0.00MB + Engine MyISAM tlg_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_wc_customer_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB tlg_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_wc_order_product_lookup: Data: 0.09MB + Index: 0.06MB + Engine InnoDB tlg_wc_order_stats: Data: 0.09MB + Index: 0.05MB + Engine InnoDB tlg_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB tlg_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB tlg_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_wc_zapier_history: Data: 0.13MB + Index: 0.00MB + Engine InnoDB tlg_wfacp_stats: Data: 0.02MB + Index: 0.06MB + Engine InnoDB tlg_wfco_report_views: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tlg_wfocu_event: Data: 0.09MB + Index: 0.14MB + Engine InnoDB tlg_wfocu_event_meta: Data: 0.16MB + Index: 0.00MB + Engine InnoDB tlg_wfocu_session: Data: 0.05MB + Index: 0.03MB + Engine InnoDB tlg_woocommerce_square_customers: Data: 0.05MB + Index: 0.00MB + Engine InnoDB tlg_yoast_indexable: Data: 0.28MB + Index: 0.27MB + Engine InnoDB tlg_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB tlg_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB tlg_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB tlg_yoast_seo_links: Data: 0.05MB + Index: 0.02MB + Engine InnoDB tlg_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf-field: 38 acf-field-group: 3 attachment: 203 booked_appointments: 1 cartflows_flow: 2 cartflows_step: 5 custom_css: 2 customize_changeset: 4 ec_woo_ddb_template: 12 elementor_library: 8 et_pb_layout: 2 nav_menu_item: 12 oembed_cache: 4 page: 48 post: 7 product: 7 production_request: 2 project_management: 1 racemailtemplate: 1 revision: 1042 shop_coupon: 22 shop_order: 601 shop_order_refund: 7 stec_calendar: 1 stec_event: 5 wc_zapier_feed: 1 wfacp_checkout: 9 wfocu_funnel: 2 wfocu_offer: 2 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (26) ### ActiveCampaign for WooCommerce: by ActiveCampaign – 1.2.11 – Installed version not tested with active version of WooCommerce 4.4.1 Advanced Custom Fields PRO: by Elliot Condon – 5.9.0-beta3 Better Search Replace: by Delicious Brains – 1.3.3 Code Snippets: by Code Snippets Pro – 2.14.0 Disable "BIG image" Threshold: by Jonathan Desrosiers – 1.0 Disable Comments: by WPDeveloper – 1.11.0 Elementor Pro: by Elementor.com – 3.0.0 Elementor: by Elementor.com – 3.0.2 MonsterInsights - eCommerce Addon: by MonsterInsights Team – 7.3.7 MonsterInsights Pro: by MonsterInsights – 7.12.2 Imagify: by WP Media – 1.9.10 Limit Login Attempts Reloaded: by WPChef – 2.15.1 MonsterInsights - Performance Addon: by MonsterInsights Team – 1.4.1 Plugin Organizer: by Jeff Sterup – 10.1.4 Really Simple SSL: by Really Simple Plugins – 3.3.5 Checkout Field Editor for WooCommerce: by ThemeHigh – 3.1.1 – Installed version not tested with active version of WooCommerce 4.4.1 WooCommerce Services: by Automattic – 1.24.1 – Installed version not tested with active version of WooCommerce 4.4.1 WooCommerce Square: by WooCommerce – 2.1.6 – Installed version not tested with active version of WooCommerce 4.4.1 WooCommerce Zapier: by OM4 – 2.0.4 – Installed version not tested with active version of WooCommerce 4.4.1 WooCommerce: by Automattic – 4.4.1 AeroCheckout: Custom WooCommerce Checkout Pages: by WooFunnels – 2.0.8 UpStroke: WooCommerce One Click Upsells: by buildwoofunnels – 2.2.1 UpStroke PowerPack: by WooFunnels – 1.5.0 – Installed version not tested with active version of WooCommerce 4.4.1 eForm - WordPress Form Builder: by WPQuark – 4.14.1 WP Mail SMTP Pro: by WPForms – 1.9.0 WPS Hide Login: by WPServeur NicolasKulka tabrisrp – 1.5.6 ### Inactive Plugins (19) ### ACF Dropzone: by J?rn Lund – 1.1.2 ACF Frontend (Premium): by Shabti Kaplan – 2.5.23 ACF MultiStep: by Cat's Plugins – 1.0.0 Advanced Custom Fields: Audio Video Player: by Virgilio Ragazzi – 1.0 Advanced Custom Fields: International Telephone Input: by Jony Hayama – 1.1.0 Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.5 Contact Form 7: by Takayuki Miyoshi – 5.2.2 Contact Form 7 Styler for Divi: by Divi People – 1.1.6 Custom Post Type UI: by WebDevStudios – 1.8.0 Ele Custom Skin: by Dudaster.com – 3.0.0 Elfsight Logo Showcase CC: by Elfsight – 1.0.0 Facebook for WooCommerce: by Facebook – 2.0.1 – Installed version not tested with active version of WooCommerce 4.4.1 Indeed Ultimate Membership Pro: by WPIndeed Development – 9.1 Stachethemes Event Calendar: by Stachethemes – 3.0.9 Subscriptio: by RightPress – 3.0.5 – Installed version not tested with active version of WooCommerce 4.4.1 W3 Total Cache: by BoldGrid – 0.14.4 WooCommerce MultiStep Checkout: by Kole Roy – 3.6.6 – Installed version not tested with active version of WooCommerce 4.4.1 WooMail - WooCommerce Email Customizer: by CidCode – 3.0.13 – Installed version not tested with active version of WooCommerce 4.4.1 Yoast SEO: by Team Yoast – 14.8.1 ### Must Use Plugins (1) ### Plugin Organizer MU: by Jeff Sterup – 10.1.4 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: #206 - /shop/ Cart: #207 - /cart/ Checkout: ? Page does not contain the shortcode. My account: #209 - /my-account/ Terms and conditions: #612 - /shop/submission-disclaimer-and-guidelines/ ### Theme ### Name: Hello Elementor Version: 2.3.0 Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### Square ### Environment: Production Tokenization Enabled: – Debug Mode: Save to Log ### Action Scheduler ### Complete: 4,470 Oldest: 2020-07-26 19:37:38 +0000 Newest: 2020-08-26 18:19:17 +0000 Pending: 4 Oldest: 2020-08-26 19:19:17 +0000 Newest: 2020-08-31 20:15:17 +0000 ### WooCommerce Zapier ### Database Version: ? 12 Detailed Logging Enabled: Yes Legacy Mode Disabled: ? Yes SSL: ? Yes REST API Authentication Key(s): ? 0 Task History Record Count: ? 1032 Webhook #36: Zapier #96381796 - Status: active - Trigger: order.paid - Delivery Count (Last 30 Days): 19 Webhook #33: Zapier #88305354 - Status: active - Trigger: order.updated - Delivery Count (Last 30 Days): 155 Webhook #31: Zapier #93803721 - Status: active - Trigger: order.created - Delivery Count (Last 30 Days): 214 Webhook #24: Zapier #86570326 - Status: disabled - Trigger: order.updated - Delivery Count (Last 30 Days): 0 Webhook #22: Zapier #90364415 - Status: active - Trigger: order.created - Delivery Count (Last 30 Days): 214 Webhook #19: Zapier #88305354 - Status: disabled - Trigger: order.updated - Delivery Count (Last 30 Days): 0 Webhook #18: Zapier #86570326 - Status: disabled - Trigger: order.updated - Delivery Count (Last 30 Days): 0 Deleted Webhook Delivery Count: 430
Bump. I’m also getting the following errors : CARD_TOKEN_USED: Card nonce already used; please request new nonce. I have read that such issues are usually theme related so I changed themes to woocommerce storefront and the issue still persists. this is costing us a lot of $ so can someone please help out asap.
Hi there @thalights,
Thanks for getting back to us with additional information. I understand that we’re dealing with two different errors here:
– “Square Payment Failed (Status code BAD_REQUEST: INTENT_MISMATCH) Order status changed from Pending payment to Failed.” which appears in Order Notes for failed order
– “CARD_TOKEN_USED: Card nonce already used; please request new nonce.” Does it also appear in Order Notes?
In any case, please check if Debug logging has been enabled in WooCommerce > Settings > Payments > Square
Link to image: https://d.pr/i/SwW3xcIf it’s been enabled before, please check logs for failed orders in WooCommerce > Status > Logs > choose
square_credit_card
for the day when it happened from the drop-down:
Link to image: https://d.pr/i/eNZDfMIf logging wasn’t enabled, please enable it and wait for the issue to happen again. Please send us the logs for further investigation via pastebin.com link but don’t forget to redact any personal and sensitive information from there.
Looking forward to hearing back from you!
Hi there @thalights,
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.
- The topic ‘BAD_REQUEST: INTENT_MISMATCH Error’ is closed to new replies.