Title: square payment
Last modified: August 9, 2020

---

# square payment

 *  Resolved [apexa0123](https://wordpress.org/support/users/apexa0123/)
 * (@apexa0123)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/square-payment/)
 * 08-09-2020 @ 07:06:07 – Response
    code: 400 message: headers: Array ( [0] => 
   HTTP/2 400 [content-type] => application/json [square-version] => 2019-08-14 [
   vary] => Origin, Accept-Encoding [x-content-type-options] => nosniff [x-download-
   options] => noopen [x-frame-options] => SAMEORIGIN [x-permitted-cross-domain-
   policies] => none [x-xss-protection] => 1; mode=block [date] => Sun, 09 Aug 2020
   07:06:07 GMT [content-length] => 182 [strict-transport-security] => max-age=631152000;
   includeSubDomains; preload ) body: Array ( [errors] => Array ( [0] => stdClass
   Object ( [category] => INVALID_REQUEST_ERROR [code] => INVALID_ENUM_VALUE [detail]
   =>  is not a valid enum value for `billing_address.country`. [field] => billing_address.
   country )
 *  )
 * )
 * 08-09-2020 @ 07:06:07 - Status code INVALID_ENUM_VALUE:  is not a valid enum 
   value for `billing_address.country`.

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

 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/square-payment/#post-13230060)
 * Hi there!
 *     ```
       [category] => INVALID_REQUEST_ERROR
       [code] => INVALID_ENUM_VALUE
       [detail] =>  is not a valid enum value for billing_address.country.
       [field] => billing_address.country
       ```
   
 * Would you mind sharing more details regarding when exactly are you seeing this
   error?
 * Is this for a particular customer or a particular order/address only?
 * Along with those details, 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.
 * Thank you for working with us on this.
 * ---
 * **EDIT:** I've marked the other topics as resolved so that we can continue troubleshooting
   here. Please get back to us in this topic instead of creating new topics so that
   there's no loss of information.
 * [I found the System Status Report here](https://wordpress.org/support/topic/location-not-showing-2/#post-13188593):
 *     ```
       ### WordPress Environment ###
   
       WordPress address (URL): https://www.pharmtreehealthcare.com
       Site address (URL): https://www.pharmtreehealthcare.com
       WC Version: 4.3.1
       REST API Version: ✔ 1.0.10
       WC Blocks Version: ✔ 2.7.2
       Action Scheduler Version: ✔ 3.1.6
       WC Admin Version: ✔ 1.3.1
       Log Directory Writable: ✔
       WP Version: 5.4.2
       WP Multisite: –
       WP Memory Limit: 256 MB
       WP Debug Mode: –
       WP Cron: ✔
       Language: en_US
       External object cache: –
   
       ### Server Environment ###
   
       Server Info: Microsoft-IIS/8.5
       PHP Version: 7.3.13
       PHP Post Max Size: 8 MB
       PHP Time Limit: 300
       PHP Max Input Vars: 1000
       cURL Version: 7.67.0
       OpenSSL/1.1.1d
   
       SUHOSIN Installed: –
       MySQL Version: 5.6.29
       Max Upload Size: 2 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       ### Database ###
   
       WC Database Version: 4.3.1
       WC Database Prefix: wp_
       Total Database Size: 66.03MB
       Database Data Size: 62.80MB
       Database Index Size: 3.23MB
       wp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_actionscheduler_actions: Data: 0.06MB + Index: 0.11MB + Engine InnoDB
       wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_actionscheduler_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
       wp_apct_testimonial_detail: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_apmm_custom_theme: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_aps_social_icons: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_atum_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_atum_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_atum_product_data: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_cf7_vdata: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_cf7_vdata_entry: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_check_pincode_p: Data: 0.00MB + Index: 0.00MB + Engine MyISAM
       wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wp_db7_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_ewwwio_images: Data: 0.09MB + Index: 0.11MB + Engine InnoDB
       wp_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_nextend2_image_storage: Data: 0.08MB + Index: 0.02MB + Engine InnoDB
       wp_nextend2_section_storage: Data: 0.03MB + Index: 0.06MB + Engine InnoDB
       wp_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_nextend2_smartslider3_sliders: Data: 0.14MB + Index: 0.03MB + Engine InnoDB
       wp_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_nextend2_smartslider3_slides: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
       wp_options: Data: 4.08MB + Index: 0.16MB + Engine InnoDB
       wp_pincode_setting_p: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_postmeta: Data: 10.16MB + Index: 0.63MB + Engine InnoDB
       wp_posts: Data: 46.31MB + Index: 0.45MB + Engine InnoDB
       wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_stock_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_usermeta: Data: 0.08MB + Index: 0.03MB + Engine InnoDB
       wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_woo_square_integration_deleted_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_woo_square_integration_logs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_xyz_ips_short_code: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_yith_wapo_groups: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_yith_wapo_types: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_yith_wcwl: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
       wp_yith_wcwl_lists: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
       wp_yoast_indexable: Data: 0.17MB + Index: 0.09MB + Engine InnoDB
       wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_yoast_seo_meta: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
   
       ### Post Type Counts ###
   
       acf-field: 2
       acf-field-group: 1
       attachment: 251
       custom_css: 5
       customize_changeset: 129
       elementor_library: 9
       modalpopupbox: 1
       nav_menu_item: 38
       o-list: 1
       page: 37
       popup: 2
       popup_theme: 7
       post: 2
       product: 26
       product_variation: 105
       revision: 1766
       shop_coupon: 2
       shop_order_refund: 2
       sp_wcslider: 1
       wc_product_table: 1
       wcpa_pt_forms: 2
       wpcf7_contact_form: 1
       yith_wcps_type: 1
       ywdpd_discount: 1
   
       ### Security ###
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔
   
       ### Active Plugins (36) ###
   
       Query Monitor: by John Blackbourn – 3.6.1
       Advanced CF7 DB: by Vsourz Digital – 1.7.2
       AJAX Login and Registration modal popup + inline form: by Maxim K – 2.10
       AP Mega Menu: by AccessPress Themes – 3.0.0
       PublishPress Capabilities: by PublishPress – 1.9.12
       CF7 Google Sheet Connector: by WesternDeal – 4.2
       Code Snippets: by Code Snippets Pro – 2.14.0
       Contact Form 7: by Takayuki Miyoshi – 5.2
       Ultimate Add To Cart Button For WooCommerce: by BinaryCarpenter.com – 1.118 – Installed version not tested with active version of WooCommerce 4.3.1
       Easy WP SMTP: by wpecommerce
       alexanderfoxc – 1.3.9.3
   
       Elementor: by Elementor.com – 2.9.14
       EWWW Image Optimizer: by Exactly WWW – 5.6.0
       Insert Headers and Footers: by WPBeginner – 1.4.6
       Insert PHP Code Snippet: by xyzscripts.com – 1.3.1
       CF Page or Post Duplicator: by Carlos Fazenda – 1.1
       PH Royal Mail WooCommerce Shipping: by PluginHive – 1.0.6 – Installed version not tested with active version of WooCommerce 4.3.1
       Popup Maker: by Popup Maker – 1.11.0
       Salert: by WPoperation – 1.1.4 – Installed version not tested with active version of WooCommerce 4.3.1
       Smart Slider 3: by Nextend – 3.4.1.8
       GDPR Cookie Consent Banner: by termly – 2.3.15
       Ultra Companion: by WPoperation – 1.1.4
       UpdraftPlus - Backup/Restore: by UpdraftPlus.Com
       DavidAnderson – 1.16.26
   
       Checkout Field Editor for WooCommerce: by ThemeHigh – 1.4.3
       Advanced Order Export For WooCommerce: by AlgolPlus – 3.1.4 – Installed version not tested with active version of WooCommerce 4.3.1
       Stripe For WooCommerce: by Payment Plugins
       support@paymentplugins.com – 3.1.7
   
       WooCommerce Extra Product Sorting Options: by SkyVerge – 2.8.4 – Installed version not tested with active version of WooCommerce 4.3.1
       WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.0.3
       WooCommerce Services: by Automattic – 1.23.2 – Installed version not tested with active version of WooCommerce 4.3.1
       WooCommerce Square: by WooCommerce – 2.1.6
       WooCommerce: by Automattic – 4.3.1
       Yoast SEO: by Team Yoast – 14.6.1
       WP File Manager: by mndpsingh287 – 6.5
       WPB Product Slider for WooCommerce: by wpbean – 2.0.8.7 – Installed version not tested with active version of WooCommerce 4.3.1
       WPC Variations Radio Buttons for WooCommerce: by WPClever.net – 2.0.5 – Installed version not tested with active version of WooCommerce 4.3.1
       Custom Product Tabs for WooCommerce: by YIKES
       Inc. – 1.7.1 – Installed version not tested with active version of WooCommerce 4.3.1
   
       YITH WooCommerce Wishlist: by YITH – 3.0.11 – Installed version not tested with active version of WooCommerce 4.3.1
   
       ### Inactive Plugins (5) ###
   
       Category Slider for WooCommerce: by ShapedPlugin – 1.2.4 – Installed version not tested with active version of WooCommerce 4.3.1
       Site Kit by Google: by Google – 1.12.0
       WooCommerce Royal Mail Shipping Calculator: by WPRuby – 1.5.2 – Installed version not tested with active version of WooCommerce 4.3.1
       Wpbingo Core: by TungHV – 1.0
       WP Mail SMTP: by WPForms – 2.2.1
   
       ### Settings ###
   
       API Enabled: –
       Force SSL: –
       Currency: GBP (£)
       Currency Position: left
       Thousand Separator: ,
       Decimal Separator: .
       Number of Decimals: 2
       Taxonomies: Product Types: composite (composite)
       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: #378 - /shop/
       Cart: #127 - /cart-3/
       Checkout: #128 - /checkout-3/
       My account: #129 - /my-account-3/
       Terms and conditions: #3 - /privacy-policy/
   
       ### Theme ###
   
       Name: pharmtreee
       Version: 1.3.6
       Author URL: https://www.pharmtreehealthcare.com
       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: storevilla/woocommerce/global\quantity-input.php version 4.0 is out of date. The core version is 4.0.0
       Outdated Templates: ❌
   
   
       						Learn how to update
   
       ### Square ###
   
       Environment: Production
       Tokenization Enabled: ✔
       Debug Mode: Save to Log
   
       ### Action Scheduler ###
   
       Complete: 106
       Oldest: 2020-06-29 08:27:46 +0000
       Newest: 2020-07-29 11:53:28 +0000
   
       Pending: 3
       Oldest: 2020-07-30 11:53:28 +0000
       Newest: 2020-08-03 04:36:57 +0000
       ```
   
 * Nothing obvious stands out from the System Status Report. This is very likely
   a conflict, but before we go that route, we'd like to know more about what's 
   happening here:
 * 1. Would you mind sharing more details regarding when exactly are you seeing 
   this error?
    2. Is this for a particular customer or a particular order/address
   only?
    -  This reply was modified 5 years, 8 months ago by [Aashik P - a11n](https://wordpress.org/support/users/aashik/).
 *  Plugin Support [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * (@aashik)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/square-payment/#post-13265717)
 * 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 2 replies - 1 through 2 (of 2 total)

The topic ‘square payment’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Aashik P – a11n](https://wordpress.org/support/users/aashik/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/square-payment/#post-13265717)
 * Status: resolved