Title: Square Payment Failed (Status code INVALID_ENUM_VALUE
Last modified: December 4, 2019

---

# Square Payment Failed (Status code INVALID_ENUM_VALUE

 *  Resolved [Sam Berry](https://wordpress.org/support/users/xronn/)
 * (@xronn)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value/)
 * Hi I’m getting the following error;
 * Square Payment Failed (Status code INVALID_ENUM_VALUE: `NIRE` is not a valid 
   enum value for `billing_address.country`.)
 * I do have Northan Ireland set as a shipping location within the WooCommerce settings,
   within my square account its set to accept payments world wide. I’m not sure 
   why this error would occur. We only have a single currency as GBP also.
 * Thanks

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

 *  Plugin Support [Grigorij S. a11n](https://wordpress.org/support/users/grigaswp/)
 * (@grigaswp)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value/#post-12207741)
 * Hi there,
 * Thank you for reaching out!
 * I understand that you’re seeing a `Status code INVALID_ENUM_VALUE: NIRE is not
   a valid enum value for billing_address.country.` error message when attempting
   to purchase a product using Square payment method.
 * You’ve mentioned that you’ve set up Northern Ireland as a shipping location –
   can you please specify if that is the store address set up in WooCommerce >> 
   Settings >> General? I don’t see Northern Ireland there:
 * [https://d.pr/i/MolB0p](https://d.pr/i/MolB0p)
 * Perhaps you’ve used a third-party plugin or a code snippet to add that? Please
   let us know where you’ve set that up.
 * If you’re using an address in Northern Ireland as a billing/shipping address 
   at the checkout page – please provide an address and a zip code we can test this
   with.
 * Thank you!
 *  Plugin Support [Grigorij S. a11n](https://wordpress.org/support/users/grigaswp/)
 * (@grigaswp)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value/#post-12226574)
 * Hi there,
 * We haven’t heard from you in a while so I’ll be marking this thread as resolved.
 * Feel free to open a new thread and link to this one if you have further questions
   though.
 * Have a wonderful day ahead!
 *  [madaboutu](https://wordpress.org/support/users/madaboutu/)
 * (@madaboutu)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value/#post-12463994)
 * HEEELLLPPPP 🙂
 * Getting exactly the same error. Example below. But ours is not related to Ireland.
   Ours is
 * 02-21-2020 @ 10:26:56 – Response
    code: 400 message: headers: Array ( [0] => 
   HTTP/1.1 400 Bad Request [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] => Fri, 21
   Feb 2020 10:26:56 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 )
 *  )
 * )
 * 02-21-2020 @ 10:26:58 - Status code INVALID_ENUM_VALUE:  is not a valid enum 
   value for `billing_address.country`.

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

The topic ‘Square Payment Failed (Status code INVALID_ENUM_VALUE’ 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

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

 * 3 replies
 * 3 participants
 * Last reply from: [madaboutu](https://wordpress.org/support/users/madaboutu/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value/#post-12463994)
 * Status: resolved