Square Invalid_value error
-
Getting a ton of these errors. If you click on submit order again it goes through but some users are just abandoning their cart when they get this error.
[category] => INVALID_REQUEST_ERROR
[code] => INVALID_VALUE
[detail] => The charge amount does not match the order total.
[field] => amount_money.amount
)"amount_money": {
"amount": 4214,
"currency": "CAD"
-
Hi @jumpwebdev
Thanks for providing the error. I’d like to confirm that you are using the most recent version of Square, WooCommerce and WordPress.
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.
Here is the system report
### WordPress Environment ### WordPress address (URL): https://craigscookies.com Site address (URL): https://craigscookies.com WC Version: 4.0.1 REST API Version: ? 1.0.7 WC Blocks Version: ? 2.5.14 Action Scheduler Version: ? 3.1.4 WC Admin Version: ? 1.0.3 Log Directory Writable: ? WP Version: ? 5.3.2 - There is a newer version of WordPress available (5.4) WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.8 PHP Post Max Size: 32 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.62.0 OpenSSL/1.0.2k SUHOSIN Installed: – MySQL Version: 5.6.45-cll-lve Max Upload Size: 32 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.0.1 WC Database Prefix: ccwp_ Total Database Size: 21.71MB Database Data Size: 14.86MB Database Index Size: 6.85MB ccwp_woocommerce_sessions: Data: 3.30MB + Index: 0.05MB + Engine InnoDB ccwp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB ccwp_woocommerce_order_items: Data: 0.09MB + Index: 0.05MB + Engine InnoDB ccwp_woocommerce_order_itemmeta: Data: 0.47MB + Index: 0.48MB + Engine InnoDB ccwp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB ccwp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_actionscheduler_actions: Data: 1.19MB + Index: 0.64MB + Engine InnoDB ccwp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_actionscheduler_logs: Data: 0.44MB + Index: 0.31MB + Engine InnoDB ccwp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_comments: Data: 0.17MB + Index: 0.09MB + Engine InnoDB ccwp_gf_draft_submissions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_gf_entry: Data: 0.06MB + Index: 0.03MB + Engine InnoDB ccwp_gf_entry_meta: Data: 0.06MB + Index: 0.05MB + Engine InnoDB ccwp_gf_entry_notes: Data: 0.05MB + Index: 0.03MB + Engine InnoDB ccwp_gf_form: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_gf_form_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_gf_form_revisions: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_gf_form_view: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_itsec_distributed_storage: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ccwp_itsec_fingerprints: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ccwp_itsec_geolocation_cache: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ccwp_itsec_lockouts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ccwp_itsec_logs: Data: 0.08MB + Index: 0.01MB + Engine MyISAM ccwp_itsec_opaque_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM ccwp_itsec_temp: Data: 0.00MB + Index: 0.01MB + Engine MyISAM ccwp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_options: Data: 3.28MB + Index: 0.14MB + Engine InnoDB ccwp_pimwick_gift_card: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_pimwick_gift_card_activity: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_postmeta: Data: 1.52MB + Index: 3.02MB + Engine InnoDB ccwp_posts: Data: 2.52MB + Index: 0.22MB + Engine InnoDB ccwp_redirection_404: Data: 0.23MB + Index: 0.20MB + Engine InnoDB ccwp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB ccwp_redirection_logs: Data: 0.02MB + Index: 0.08MB + Engine InnoDB ccwp_say_what_strings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_sbi_instagram_feeds_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_sbi_instagram_posts: Data: 0.08MB + Index: 0.00MB + Engine InnoDB ccwp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_usermeta: Data: 0.20MB + Index: 0.20MB + Engine InnoDB ccwp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ccwp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ccwp_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB ccwp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_wc_order_product_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB ccwp_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB ccwp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB ccwp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB ccwp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ccwp_woocommerce_pickup_locations_geodata: Data: 0.02MB + Index: 0.05MB + Engine InnoDB ccwp_ywcdd_calendar: Data: 0.06MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### acf-field: 56 acf-field-group: 13 attachment: 55 locations: 2 nav_menu_item: 6 page: 11 post: 5 product: 37 product_variation: 64 revision: 336 shop_order: 214 shop_order_refund: 2 uni_cpo_option: 2 wapf_product: 2 wc_pickup_location: 2 woo_discount: 2 woo_discount_cart: 1 yith_carrier: 4 yith_proc_method: 4 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (22) ### Gravity Forms: by rocketgenius – 2.4.16.7 Advanced Custom Fields PRO: by Elliot Condon – 5.8.9 Advanced Product Fields Pro for WooCommerce: by StudioWombat – 1.2.4 – Not tested with the active version of WooCommerce iThemes Security: by iThemes – 7.6.1 WooCommerce Continue Shopping: by HappyKite – 1.4.2 Flexible Product Fields: by WP Desk – 1.2.14 Google XML Sitemaps: by Arne Brachhold – 4.1.0 Instagram Feed Pro Developer: by Smash Balloon – 5.3.3 Jetpack by WordPress.com: by Automattic – 8.3 Mailchimp for WooCommerce: by Mailchimp – 2.3.5 PW WooCommerce Gift Cards Pro: by Pimwick LLC – 1.190 Redirection: by John Godley – 4.7.1 Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.3 Compress JPEG & PNG images: by TinyPNG – 3.2.1 WooCommerce Blocks: by Automattic – 2.5.14 Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.3 Print Invoice & Delivery Notes for WooCommerce: by Tyche Softwares – 4.5.5 WooCommerce - ShipStation Integration: by WooCommerce – 4.1.34 WooCommerce Square: by WooCommerce – 2.1.1 WooCommerce: by Automattic – 4.0.1 WP Mail SMTP: by WPForms – 1.9.0 YITH WooCommerce Delivery Date Premium: by YITH – 2.1.10 ### Inactive Plugins (7) ### Order Delivery Date for WooCommerce (Lite version): by Tyche Softwares – 3.10.1 PW WooCommerce Gift Cards: by Pimwick LLC – 1.115 WooCommerce Admin: by WooCommerce – 1.0.3 WooCommerce Local Pickup Plus: by SkyVerge – 2.7.5 WooCommerce Services: by Automattic – 1.22.5 WooODT Lite: by ByConsole – 2.1.6 – Not tested with the active version of WooCommerce WooSquare Pro: by wpexperts.io – 6.8.2 ### Settings ### API Enabled: – Force SSL: – Currency: CAD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) pw gift card (pw-gift-card) 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: #599 - /test-page/ Cart: #7 - /cart/ Checkout: #8 - /checkout/ My account: #9 - /my-account/ Terms and conditions: #3 - /privacy-policy/ ### Theme ### Name: craigscookies Theme Version: 1.0 Author URL: https://www.howhigh.ca/ Child Theme: ? Parent Theme Name: Genesis Parent Theme Version: 3.3.1 Parent Theme Author URL: https://www.studiopress.com/ WooCommerce Support: ? ### Templates ### Overrides: CraigsCookies/woocommerce/archive-product.php CraigsCookies/woocommerce/cart/cart-empty.php CraigsCookies/woocommerce/cart/cart-item-data.php CraigsCookies/woocommerce/cart/cart-shipping.php CraigsCookies/woocommerce/cart/cart-totals.php CraigsCookies/woocommerce/cart/cart.php CraigsCookies/woocommerce/cart/cross-sells.php CraigsCookies/woocommerce/cart/mini-cart.php CraigsCookies/woocommerce/cart/proceed-to-checkout-button.php CraigsCookies/woocommerce/cart/shipping-calculator.php CraigsCookies/woocommerce/checkout/cart-errors.php CraigsCookies/woocommerce/checkout/form-billing.php CraigsCookies/woocommerce/checkout/form-checkout.php CraigsCookies/woocommerce/checkout/form-coupon.php CraigsCookies/woocommerce/checkout/form-login.php CraigsCookies/woocommerce/checkout/form-pay.php CraigsCookies/woocommerce/checkout/form-shipping.php CraigsCookies/woocommerce/checkout/order-receipt.php CraigsCookies/woocommerce/checkout/payment-method.php CraigsCookies/woocommerce/checkout/payment.php CraigsCookies/woocommerce/checkout/review-order.php CraigsCookies/woocommerce/checkout/terms.php CraigsCookies/woocommerce/checkout/thankyou.php CraigsCookies/woocommerce/single-product.php version - is out of date. The core version is 1.6.4 Outdated Templates: ? Learn how to update ### Square ### Environment: Production Tokenization Enabled: ? Debug Mode: Save to Log ### Action Scheduler ### Complete: 1,979 Oldest: 2020-03-01 15:21:48 +0000 Newest: 2020-04-01 14:47:19 +0000 Pending: 2 Oldest: 2020-04-01 15:47:19 +0000 Newest: 2020-04-06 19:08:43 +0000
Hi @jumpwebdev
Thanks for the System Status report. It looks like everything is up to date.
The next step will be to test for conflicts as I see a number of template overrides for the theme at checkout.
?
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.
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 ‘Square Invalid_value error’ is closed to new replies.