Title: Square Payment Failed INVALID_ENUM_VALUE default
Last modified: November 5, 2020

---

# Square Payment Failed INVALID_ENUM_VALUE default

 *  Resolved [tgarcialvarez](https://wordpress.org/support/users/tgarcialvarez/)
 * (@tgarcialvarez)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/)
 * I do the process of selecting the product and putting it in the cart, it gives
   me this error and does not let me make the purchase
 * Square Payment Failed (Status code INVALID_ENUM VALUE: ‘default’ is not a valid
   enum value for ‘Country’ (line 1, character 548))
 * Square Payment Failed (Status code INVALID_ENUM VALUE: ‘default’ is not a valid
   enum value for ‘Country’ (line 1, character 548)) El estado del pedido cambio
   de Pendiente de pago a Fallido.

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

 *  [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * (@treibalen)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13624789)
 * Hi there [@tgarcialvarez](https://wordpress.org/support/users/tgarcialvarez/),
 * Thanks for reaching out!
 * It seems like an error is coming from the `Country` checkout field which for 
   some reason is being filled in as `default`.
 * Can you please check if you can choose the country on your checkout page? Did
   you in any way alter your checkout fields with a plugin or code?
 * 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 in coding brackets.
 * Cheers!
 *  Thread Starter [tgarcialvarez](https://wordpress.org/support/users/tgarcialvarez/)
 * (@tgarcialvarez)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13627737)
 * This?
 *     ```
       ### WordPress Environment ###
   
       WC Version: 4.6.1
       REST API Version: ✔ 4.6.1
       WC Blocks Version: ✔ 3.4.0
       Action Scheduler Version: ✔ 3.1.6
       WC Admin Version: ✔ 1.6.2
       Log Directory Writable: ✔
       WP Version: 5.5.3
       WP Multisite: –
       WP Memory Limit: 256 MB
       WP Debug Mode: –
       WP Cron: ✔
       Language: es_ES
       External object cache: –
   
       ### Server Environment ###
   
       Server Info: Apache
       PHP Version: 7.4.11
       PHP Post Max Size: 32 MB
       PHP Time Limit: 300
       PHP Max Input Vars: 1000
       cURL Version: 7.71.0
       OpenSSL/1.1.1d
   
       SUHOSIN Installed: –
       MySQL Version: 5.6.49-cll-lve
       Max Upload Size: 32 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       ### Post Type Counts ###
   
       attachment: 1081
       custom_css: 1
       customize_changeset: 2
       language_switcher: 2
       mc4wp-form: 1
       nav_menu_item: 99
       newsletter: 1
       oembed_cache: 2
       page: 60
       post: 11
       product: 81
       revision: 106
       shop_order: 152
       tbay_brand: 8
       tbay_footer: 1
       tbay_megamenu: 2
       tbay_testimonial: 5
       wfacp_checkout: 3
       wpcf7_contact_form: 2
       wpforms: 4
       yith_proc_method: 1
       yith_product_table: 1
       yith_wc_qof_1: 1
       yith_wcps_type: 1
       yith-pos-receipt: 1
       yith-wccos-ostatus: 2
   
       ### Security ###
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔
   
       ### Active Plugins (32) ###
   
       Gravity Forms: por Gravity Forms – 2.4.19
       WPML Multilingual CMS: por OnTheGoSystems – 4.3.16
       Autoclear Autoptimize Cache: por Theme Surgeons – 2.1.1
       Autoptimize: por Frank Goossens (futtta) – 2.7.8
       Contact Form 7: por Takayuki Miyoshi – 5.3
       Gravity Forms Bulk Add Fields: por JetSloth – 1.0.2
       Gravity Forms Multilingual: por OnTheGoSystems – 1.5.4
       Extensión de Square de Gravity Forms: por rocketgenius – 1.0.4
       Gravity Forms Webhooks Add-On: por Gravity Forms – 1.3
       WPBakery Page Builder: por Michael M - WPBakery.com – 6.2.0
       Mailster - Email Newsletter Plugin for WordPress: por EverPress – 2.4.13
       Recargas Promocionales: por Esteban Ortega – 1.0.5
       Slider Revolution: por ThemePunch – 6.2.17
       SWE Country Code Field GF Add-On: por SanjayWebExpert – 1.1.0
       Tbay Framework: por Team TbayTheme – 2.2.3
       TranslatePress - Multilingual: por Cozmoslabs
       Razvan Mocanu
       Madalin Ungureanu
       Cristophor Hurduban – 1.8.6 – Versión instalada no está probada con la versión activa de WooCommerce 4.6.1
   
       UpdraftPlus - Backup/Restore: por UpdraftPlus.Com
       DavidAnderson – 2.16.27.24
   
       WPBakery Page Builder (Visual Composer) Clipboard: por bitorbit – 4.5.5
       Variation Swatches for WooCommerce - Pro: por Emran Ahmed – 1.0.55 – Versión instalada no está probada con la 
   
       versión activa de WooCommerce 4.6.1
       Variation Swatches for WooCommerce: por Emran Ahmed – 1.1.0
       WooCommerce Google Analytics Integration: por WooCommerce – 1.4.24 – Versión instalada no está probada con la 
   
       versión activa de WooCommerce 4.6.1
       WooCommerce Multilingual: por OnTheGoSystems – 4.10.3 – Versión instalada no está probada con la versión activa de 
   
       WooCommerce 4.6.1
       WooCommerce Square: por WooCommerce – 2.2.4
       WooCommerce TM Extra Product Options: por themeComplete – 5.0.12.8 – Versión instalada no está probada con la 
   
       versión activa de WooCommerce 4.6.1
       WooCommerce: por Automattic – 4.6.1 (la actualización a la versión 4.6.2 está disponible)
       WP Super Cache: por Automattic – 1.7.1
       WPML String Translation: por OnTheGoSystems – 3.0.12
       WPML Translation Management: por OnTheGoSystems – 2.9.9
       YITH WooCommerce Checkout Manager: por YITH – 1.3.12 – Versión instalada no está probada con la versión activa de 
   
       WooCommerce 4.6.1
       YITH WooCommerce Customize My Account Page: por YITH – 2.6.4 – Versión instalada no está probada con la versión 
   
       activa de WooCommerce 4.6.1
       YITH WooCommerce Multi-step Checkout Premium: por YITH – 1.9.3 – Versión instalada no está probada con la versión 
   
       activa de WooCommerce 4.6.1
       YITH WooCommerce Quick View Premium: por Scriptyab – 1.5.3 – Versión instalada no está probada con la versión 
   
       activa de WooCommerce 4.6.1
   
       ### Inactive Plugins (15) ###
   
       All in one Favicon: por Arne Franken – 4.7
       Bulk Actions Pro for Gravity Forms: por JetSloth – 1.2.26
       Duplicate Page: por mndpsingh287 – 4.3
       Essential Grid: por ThemePunch – 2.3.5
       Gravity Forms FreshBooks Classic Add-On: por Gravity Forms – 2.7
       Hello Dolly: por Matt Mullenweg – 1.7.2
       NEX-Forms - Ultimate: por Basix – 7.7.1
       Quantity Plus/Minus Button for WooCommerce: por CodeAstrology – 1.0.4 – Versión instalada no está probada con la 
   
       versión activa de WooCommerce 4.6.1
       Really Simple SSL: por Really Simple Plugins – 3.3.5
       Really Simple SSL pro: por Rogier Lankhorst – 2.1.21
       WooCommerce Multiple Customer Addresses: por Lagudi Domenico – 18.1 – Versión instalada no está probada con la 
   
       versión activa de WooCommerce 4.6.1
       WP-Optimize Premium - Clean, Compress, Cache: por David Anderson
       Ruhani Rabin
       Team Updraft – 3.1.2
   
       XML Sitemap & Google News: por RavanH – 5.2.7
       YellowPencil Pro: por WaspThemes – 7.3.1
       Yoast SEO: por Team Yoast – 15.2.1
   
       ### Dropin Plugins (1) ###
   
       advanced-cache.php: advanced-cache.php
   
       ### 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)
       yith_pos (yith_pos)
       yith_pos (comida-a-domicilio)
   
       Connected to WooCommerce.com: –
   
       ### WC Pages ###
   
       Base de la tienda: #11 - /tienda/
       Carrito: #8 - /cart/
       Finalizar compra: #9 - /pagar/
       Mi cuenta: #14 - /mi-cuenta/
       Términos y condiciones: ❌ Página sin definir
   
       ### Theme ###
   
       Name: GreenMart
       Version: 2.4.3
       Author URL: https://thembay.com
       Child Theme: ❌ – Si estás modificando WooCommerce en un tema padre que no has creado personalmente
       te recomendamos utilizar un tema hijo. Ver: Cómo crear un tema hijo
   
       WooCommerce Support: ✔
   
       ### Templates ###
   
       Archive Template: Tu tema tiene un archivo woocommerce.php
       no podrás sobreescribir la plantilla personalizada woocommerce/archive-product.php ya que woocommerce.php tiene 
   
       prioridad sobre archive-product.php. Esto es intencionado para prevenir problemas de visualización.
   
       Overrides: /home/q9sth8mhj5dd/public_html/wp-content/plugins/woocommerce-tm-extra-product-
   
       options/templates/cart/cart-item-data.php
       greenmart/woocommerce/cart/cart.php
       La  version 3.0.0 de greenmart/woocommerce/cart/cross-sells.php está obsoleta. La versión del núcleo es la 4.4.0
       greenmart/woocommerce/checkout/form-checkout.php
       greenmart/woocommerce/content-product.php
       greenmart/woocommerce/content-product_cat.php
       greenmart/woocommerce/content-single-product.php
       greenmart/woocommerce/global/breadcrumb.php
       greenmart/woocommerce/global/quantity-input.php
       greenmart/woocommerce/loop/add-to-cart.php
       greenmart/woocommerce/loop/loop-end.php
       greenmart/woocommerce/loop/loop-start.php
       greenmart/woocommerce/loop/orderby.php
       greenmart/woocommerce/loop/pagination.php
       greenmart/woocommerce/loop/rating.php
       greenmart/woocommerce/myaccount/form-login.php
       greenmart/woocommerce/myaccount/my-address.php
       greenmart/woocommerce/myaccount/my-orders.php
       greenmart/woocommerce/single-product/product-image.php
       greenmart/woocommerce/single-product/product-thumbnails.php
       greenmart/woocommerce/single-product/rating.php
       greenmart/woocommerce/single-product/related.php
       greenmart/woocommerce/single-product/review.php
       greenmart/woocommerce/single-product/tabs/additional-information.php
       greenmart/woocommerce/single-product/tabs/description.php
       greenmart/woocommerce/single-product/tabs/tabs.php
       greenmart/woocommerce/single-product/up-sells.php
       greenmart/woocommerce/single-product-reviews.php
   
       Outdated Templates: ❌
   
   
       						Aprende cómo actualizar
   
       ### Square ###
   
       Environment: Production
       Tokenization Enabled: ✔
       Debug Mode: Off
   
       ### Action Scheduler ###
   
       Completo: 207
       Oldest: 2020-10-05 20:45:56 -0400
       Newest: 2020-11-04 01:23:37 -0500
   
       Fallida: 1
       Oldest: 2020-07-31 09:13:06 -0400
       Newest: 2020-07-31 09:13:06 -0400
   
       Pendiente: 1
       Oldest: 2020-11-11 01:23:37 -0500
       Newest: 2020-11-11 01:23:37 -0500
       ```
   
 *  [Elvira K.](https://wordpress.org/support/users/treibalen/)
 * (@treibalen)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13629070)
 * Hi there [@tgarcialvarez](https://wordpress.org/support/users/tgarcialvarez/),
 * Yes, that’s what I needed, thank you!
 * On your checkout page, do you see the country field or was it modified? Could
   you please share a screenshot?
 * You removed the site URLs from the System Status so I can’t check it myself 🙂
 *  Thread Starter [tgarcialvarez](https://wordpress.org/support/users/tgarcialvarez/)
 * (@tgarcialvarez)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13632326)
 * Sorry the site is this [https://avycuba.com](https://avycuba.com)
    -  This reply was modified 5 years, 5 months ago by [tgarcialvarez](https://wordpress.org/support/users/tgarcialvarez/).
 *  Thread Starter [tgarcialvarez](https://wordpress.org/support/users/tgarcialvarez/)
 * (@tgarcialvarez)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13632728)
 * I use YITH WooCommerce Checkout Manager to make my form
    I don’t know if that
   could be influencing something
 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13636822)
 * Hi there!
 * I took a look at the checkout page it seems the country field is available.
 * Can you please check what happens if you temporarily deactivate `YITH WooCommerce
   Checkout Manager`, and if that doesn’t help, try deactivating `YITH WooCommerce
   Multi-step Checkout Premium` and check.
 * ?
 * Do you still see the same error in all the three test cases above?
 * —
 * You can set up a staging site to test by getting in touch with your web host,
   or using a plugin. The WP Staging plugin is perfect for making a clone of your
   live site so you can set up a local development site. If you need help setting
   it up, you can find the step by step documentation here: [https://wordpress.org/plugins/wp-staging/#description](https://wordpress.org/plugins/wp-staging/#description)
   under “HOW TO INSTALL AND SETUP?”
 *  Thread Starter [tgarcialvarez](https://wordpress.org/support/users/tgarcialvarez/)
 * (@tgarcialvarez)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13640444)
 * I will do the tests you tell me, and I will let you know if they give me results
 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13642100)
 * Sounds like a plan! We’re here if you need further help 🙂
 *  [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * (@jricketts4)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13669371)
 * 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 9 replies - 1 through 9 (of 9 total)

The topic ‘Square Payment Failed INVALID_ENUM_VALUE default’ 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/)

## Tags

 * [invalid](https://wordpress.org/support/topic-tag/invalid/)
 * [payment](https://wordpress.org/support/topic-tag/payment/)
 * [value](https://wordpress.org/support/topic-tag/value/)

 * 9 replies
 * 4 participants
 * Last reply from: [Joey – a11n](https://wordpress.org/support/users/jricketts4/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/square-payment-failed-invalid_enum_value-default/#post-13669371)
 * Status: resolved