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
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!
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!
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.