Title: Square Payment Failed (Status code INVALID_ENUM_VALUE: &#8230;
Last modified: May 8, 2024

---

# Square Payment Failed (Status code INVALID_ENUM_VALUE: …

 *  Resolved [martiniboy](https://wordpress.org/support/users/martiniboy/)
 * (@martiniboy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/)
 * Hi we have just launched a rebuild of the website and added yourplugin, our test
   transactions went through fine but now it is live customers are trying to renew
   their subscriptions and the orders are failing, with this note – Square Payment
   Failed (Status code INVALID_ENUM_VALUE: “ is not a valid enum value for `Country`(
   line 1, character 881))
   No default fields have been removed from the checkout,
   however we have a conditional field for date of birth if a certain product is
   bought. I have turned on transaction debug and it basically says the same as 
   the order notes error.I did notice that it is looking at shipping address – as
   this is a virtual membership subscription I wondered if that was the reason and
   copied the billing info over and it worked – but how will I make this default
   for all other renewals?
 * **2024-05-08T11:50:42+00:00****Notice** Request [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L2)
   method: [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L3)
   uri: createOrder [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L4)
   user-agent: WooCommerce-Square/4.6.1 (WooCommerce/8.8.3; WordPress/6.5.3) [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L5)
   headers: Array [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L6)(
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L7))
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L8)
   body: [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L9)
   duration: 0.40549s [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L10)
   CONTEXT: {“_legacy”:true} [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L11)**
   2024-05-08T11:50:42+00:00****Notice** Response [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L12)
   code: 200 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L13)
   message: [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L14)
   headers: Array [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L15)(
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L16)[
   0] => HTTP/2 200 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L17)[
   date] => Wed, 08 May 2024 11:50:42 GMT [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L18)[
   content-type] => application/json;charset=utf-8 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L19)[
   content-length] => 452 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L20)[
   cf-ray] => 88093bcf484623f9-LHR [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L21)[
   cf-cache-status] => DYNAMIC [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L22)[
   content-encoding] => gzip [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L23)[
   strict-transport-security] => max-age=631152000; includeSubDomains; preload [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L24)[
   vary] => Accept-Encoding [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L25)[
   frame-options] => DENY [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L26)[
   square-version] => 2023-07-20 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L27)[
   x-content-type-options] => nosniff [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L28)[
   x-envoy-decorator-operation] => /v2/orders/** [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L29)[
   x-frame-options] => DENY [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L30)[
   x-sq-dc] => sjc3b [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L31)[
   x-sq-region] => sjc3b [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L32)[
   x-xss-protection] => 1; mode=block [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L33)[
   set-cookie] => __cf_bm=3rcMtJzt5K4O9HJGKPBqxM9FloOClzjTRXub2uBpq1s-1715169042-
   1.0.1.1-p008ocb5P_IocPELcLenw_0MSlV0b1OSjDXK0rQ1knmBQi16WmzgvnvtEcY0xib.Jc7oslwitX7PACshLAHGzA;
   path=/; expires=Wed, 08-May-24 12:20:42 GMT; domain=.connect.squareup.com; HttpOnly;
   Secure; SameSite=None [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L34)[
   server] => cloudflare [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L35))
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L36)
   body: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L37)“
   order”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L38)“
   id”: “hBf0zpJ9ztaGJlFbJEj5mQQEfxNZY”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L39)“
   location_id”: “LX86K1D232ADS”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L40)“
   reference_id”: “4585”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L41)“
   source”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L42)“
   name”: “WooCommerce” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L43)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L44)“
   customer_id”: “5PT8KP70PGH8CSMSVV7H80TAJ4”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L45)“
   line_items”: [ [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L46){
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L47)“
   uid”: “a3TIEiqxcqRlyfbfHGf1BD”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L48)“
   name”: “Membership – Individual”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L49)“
   quantity”: “1”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L50)“
   item_type”: “ITEM”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L51)“
   base_price_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L52)“
   amount”: 3000, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L53)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L54)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L55)“
   variation_total_price_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L56)“
   amount”: 3000, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L57)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L58)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L59)“
   gross_sales_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L60)“
   amount”: 3000, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L61)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L62)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L63)“
   total_tax_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L64)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L65)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L66)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L67)“
   total_discount_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L68)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L69)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L70)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L71)“
   total_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L72)“
   amount”: 3000, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L73)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L74)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L75)“
   total_service_charge_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L76)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L77)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L78)}
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L79)}
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L80)],
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L81)“
   net_amounts”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L82)“
   total_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L83)“
   amount”: 3000, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L84)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L85)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L86)“
   tax_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L87)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L88)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L89)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L90)“
   discount_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L91)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L92)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L93)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L94)“
   tip_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L95)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L96)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L97)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L98)“
   service_charge_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L99)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L100)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L101)}
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L102)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L103)“
   created_at”: “2024-05-08T11:50:41.970Z”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L104)“
   updated_at”: “2024-05-08T11:50:41.970Z”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L105)“
   state”: “OPEN”, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L106)“
   version”: 1, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L107)“
   total_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L108)“
   amount”: 3000, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L109)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L110)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L111)“
   total_tax_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L112)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L113)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L114)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L115)“
   total_discount_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L116)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L117)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L118)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L119)“
   total_tip_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L120)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L121)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L122)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L123)“
   total_service_charge_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L124)“
   amount”: 0, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L125)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L126)},
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L127)“
   net_amount_due_money”: { [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L128)“
   amount”: 3000, [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L129)“
   currency”: “GBP” [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L130)}
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L131)}
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L132)}
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L133)
   CONTEXT: {“_legacy”:true} [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L134)**
   2024-05-08T11:50:42+00:00****Notice** Request [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L135)
   method: [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L136)
   uri: createPayment [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L137)
   user-agent: WooCommerce-Square/4.6.1 (WooCommerce/8.8.3; WordPress/6.5.3) [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L138)
   headers: Array [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L139)(
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L140))
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L141)
   body: [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L142)
   duration: 0.19604s [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L143)
   CONTEXT: {“_legacy”:true} [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L144)**
   2024-05-08T11:50:42+00:00****Notice** Response [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L145)
   code: 400 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L146)
   message: [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L147)
   headers: Array [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L148)(
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L149)[
   0] => HTTP/2 400 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L150)[
   date] => Wed, 08 May 2024 11:50:42 GMT [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L151)[
   content-type] => application/json [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L152)[
   content-length] => 196 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L153)[
   cf-ray] => 88093bd16abb23f9-LHR [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L154)[
   cf-cache-status] => DYNAMIC [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L155)[
   strict-transport-security] => max-age=631152000; includeSubDomains; preload [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L156)[
   frame-options] => DENY [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L157)[
   x-content-type-options] => nosniff [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L158)[
   x-envoy-decorator-operation] => /v2/payments/** [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L159)[
   x-frame-options] => DENY [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L160)[
   x-sq-dc] => aws [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L161)[
   x-sq-region] => us-west-2 [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L162)[
   x-xss-protection] => 1; mode=block [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L163)[
   set-cookie] => __cf_bm=q7.bmHr246Fp2A_YKPg3BzU86kLziIfj_PLF6fVXhnA-1715169042-
   1.0.1.1-y9rvEpoo1IUjxApVHhfzcmdzoWHk4BZrZteYFJW6V3hfvUotAqzgNdjvErFx_jAgcXCSGFjgq38tnRiGfxTOeQ;
   path=/; expires=Wed, 08-May-24 12:20:42 GMT; domain=.connect.squareup.com; HttpOnly;
   Secure; SameSite=None [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L164)[
   vary] => Accept-Encoding [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L165)[
   server] => cloudflare [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L166))
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L167)
   body: Array [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L168)(
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L169)[
   0] => Square\Models\Error Object [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L170)(
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L171)[
   category:Square\Models\Error:private] => INVALID_REQUEST_ERROR [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L172)[
   code:Square\Models\Error:private] => INVALID_ENUM_VALUE [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L173)[
   detail:Square\Models\Error:private] =>  is not a valid enum value for `Country`(
   line 1, character 881) [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L174)[
   field:Square\Models\Error:private] => shipping_address.country [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L175))
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L176)
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L177))
   [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L178)
   CONTEXT: {“_legacy”:true} [](https://www.pheasant.org.uk/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=square_credit_card-2024-05-08#L179)**
   2024-05-08T11:50:42+00:00****Notice** Status code INVALID_ENUM_VALUE:  is not
   a valid enum value for `Country` (line 1, character 881) Additional context
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsquare-payment-failed-status-code-invalid_enum_value-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [carolm29 (woo-hc)](https://wordpress.org/support/users/carolm29/)
 * (@carolm29)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17741521)
 * Hey there, [@martiniboy](https://wordpress.org/support/users/martiniboy/)! Thanks
   for contacting us. I’m happy to help you.
 * Is this happening on every order or only some?
 * Do you have any simple products on your website? If you don’t, can you please
   create one and run a test order to see if the issue also happens with it?
 * Can you please confirm which subscription plugin you are using?
 * Furthermore, I’d like to understand your site properly. Please share with us 
   the System Status Report which you can find via WooCommerce > Status > Get system
   report > Copy for support.
 * > No default fields have been removed from the checkout, however we have a conditional
   > field for date of birth if a certain product is bought.
 * Is this happening only on products that require this conditional field?
 * Have you tried removing and checking if the issue persists?
 * Looking forward to your reply.
 * Have a wonderful day!
 *  Thread Starter [martiniboy](https://wordpress.org/support/users/martiniboy/)
 * (@martiniboy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17741577)
 * Tried with a simple product and it went through ok, it appears to be the Woocommerce
   Subscriptions variable products having the issue. The ones which were tested 
   do not have the conditional field and have tried with that deactivated also, 
   but the same issue. As mentioned before I think that it is looking for a shipping
   Country but these subscriptions are virtual so no shipping is required. Here 
   is the system report.
 *     ```wp-block-code
       ` WordPress Environment
   
       WordPress address (URL): https://www.pheasant.org.uk
       Site address (URL): https://www.pheasant.org.uk
       WC Version: 8.8.3
       REST API Version: ✔ 8.8.3
       Action Scheduler Version: ✔ 3.7.4
       Log Directory Writable: ✔
       WP Version: 6.5.3
       WP Multisite: –
       WP Memory Limit: 2 GB
       WP Debug Mode: –
       WP Cron: ✔
       Language: en_GB
       External object cache: – Server Environment
   
       Server Info: Apache
       PHP Version: 8.0.30
       PHP Post Max Size: 128 MB
       PHP Time Limit: 300
       PHP Max Input Vars: 5000
       cURL Version: 8.1.2
       OpenSSL/3.0.8
   
       SUHOSIN Installed: –
       MySQL Version: 10.6.15-MariaDB-log
       Max Upload Size: 128 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔ Database
   
       WC Database Version: 8.8.3
       WC Database Prefix: d2_
       Total Database Size: 143.74MB
       Database Data Size: 130.35MB
       Database Index Size: 13.39MB
       d2_woocommerce_sessions: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
       d2_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       d2_woocommerce_order_items: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
       d2_woocommerce_order_itemmeta: Data: 0.19MB + Index: 0.17MB + Engine InnoDB
       d2_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       d2_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       d2_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_actionscheduler_actions: Data: 1.09MB + Index: 0.45MB + Engine InnoDB
       d2_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_actionscheduler_logs: Data: 0.22MB + Index: 0.16MB + Engine InnoDB
       d2_ac_segments: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_admin_columns: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_comments: Data: 0.23MB + Index: 0.28MB + Engine InnoDB
       d2_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_e_notes: Data: 0.02MB + Index: 0.17MB + Engine InnoDB
       d2_e_notes_users_relations: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       d2_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB
       d2_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB
       d2_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_jet_post_types: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
       d2_jet_smart_filters_indexer: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_jet_taxonomies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_ju_queue: Data: 2.02MB + Index: 1.17MB + Engine InnoDB
       d2_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_options: Data: 7.44MB + Index: 0.19MB + Engine InnoDB
       d2_pmxe_exports: Data: 0.38MB + Index: 0.00MB + Engine InnoDB
       d2_pmxe_google_cats: Data: 0.38MB + Index: 0.00MB + Engine InnoDB
       d2_pmxe_posts: Data: 0.16MB + Index: 0.00MB + Engine InnoDB
       d2_pmxe_templates: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
       d2_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_pmxi_hash: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
       d2_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_pmxi_imports: Data: 0.19MB + Index: 0.00MB + Engine InnoDB
       d2_pmxi_posts: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
       d2_pmxi_templates: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
       d2_postmeta: Data: 85.17MB + Index: 5.66MB + Engine InnoDB
       d2_posts: Data: 26.03MB + Index: 0.34MB + Engine InnoDB
       d2_rank_math_internal_links: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
       d2_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_sd_email_delivery_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_sd_page_access_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_sm_tasks: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_sm_task_details: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_sm_views: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_termmeta: Data: 0.16MB + Index: 0.03MB + Engine InnoDB
       d2_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
       d2_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
       d2_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
       d2_usermeta: Data: 1.52MB + Index: 1.94MB + Engine InnoDB
       d2_users: Data: 0.06MB + Index: 0.05MB + Engine InnoDB
       d2_viwec_clicked: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_wcs_payment_retries: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB
       d2_wc_admin_note_actions: Data: 0.05MB + Index: 0.02MB + Engine InnoDB
       d2_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_wc_customer_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
       d2_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_wc_mnm_child_items: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_wc_orders: Data: 0.08MB + Index: 0.11MB + Engine InnoDB
       d2_wc_orders_meta: Data: 0.42MB + Index: 0.56MB + Engine InnoDB
       d2_wc_order_addresses: Data: 0.11MB + Index: 0.09MB + Engine InnoDB
       d2_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_wc_order_operational_data: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
       d2_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       d2_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       d2_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_wc_product_attributes_lookup: Data: 0.16MB + Index: 0.14MB + Engine InnoDB
       d2_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       d2_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_woocommerce_exported_xml_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_woocommerce_shipping_table_rates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_woocommerce_square_customers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_wpfd_statistics: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
       d2_wpfd_tokens: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_wpmailsmtp_emails_log: Data: 2.09MB + Index: 0.03MB + Engine InnoDB
       d2_wpmailsmtp_email_tracking_events: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       d2_wpmailsmtp_email_tracking_links: Data: 0.06MB + Index: 0.02MB + Engine InnoDB
       d2_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       d2_wpmf_s3_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_wp_phpmyadmin_extension__errors_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_wtbp_favorites: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       d2_wtbp_tables: Data: 0.02MB + Index: 0.00MB + Engine InnoDB Post Type Counts
   
       attachment: 275
       customize_changeset: 6
       ele_custom_shapes: 1
       elementor_font: 1
       elementor_library: 27
       elementor_snippet: 1
       enr_email_template: 2
       events: 12
       give_forms: 6
       gotmls_results: 1
       jet-engine: 23
       jet-smart-filters: 5
       nav_menu_item: 44
       page: 39
       post: 4
       product: 27
       product_variation: 154
       projects: 38
       revision: 504
       shop_coupon: 1
       shop_order: 95
       shop_subscription: 247
       surplus--required: 10
       viwec_template: 18
       viwec_template_block: 2
       wc-donation: 3
       wp_navigation: 1
       wpfd_file: 6
       yaymail_template: 15 Security
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔ Active Plugins (37)
   
       ManageWP - Worker: by GoDaddy – 4.9.19
       Admin Columns Pro: by AdminColumns.com – 6.4.8
       Elementor Pro: by Elementor.com – 3.21.2
       Elementor: by Elementor.com – 3.21.5
       Enhancer for WooCommerce Subscriptions: by Flintop – 4.4.0
       Anti-Malware Security and Brute-Force Firewall: by Eli Scheetz – 4.23.57
       JetElements For Elementor: by Crocoblock – 2.6.17.1
       JetEngine - break listing by months: by Crocoblock – 1.0.0
       JetEngine - dynamic tables builder: by Crocoblock – 1.0.10
       JetEngine - Repeater field values: by Matthew Harris
       runthings.dev – 1.2.beta.1
   
       JetEngine: by Crocoblock – 3.4.4
       JetMenu: by Crocoblock – 2.4.4
       JetSmartFilters: by Crocoblock – 3.4.5
       JetProductGallery: by Crocoblock – 2.1.15
       Mailchimp for WooCommerce: by Mailchimp – 4.0.1
       Rank Math SEO with AI Best SEO Tools: by Rank Math – 1.0.218
       User Switching: by John Blackbourn & contributors – 1.7.3
       UK Gift Aid for WooCommerce: by Power Plugins – 1.15.0
       Checkout Field Editor for WooCommerce (Pro): by ThemeHigh – 3.6.2
       WooCommerce Email Template Customizer Premium: by VillaTheme – 1.2.4
       WooCommerce Mix and Match Products: by Kathy Darling – 2.7.0
       WooCommerce Price Based on Country Pro: by Oscar Gare – 3.4.8
       Woo Product Add-ons: by Woo – 6.8.2
       WooCommerce Price Based on Country: by Oscar Gare – 3.4.5
       WooCommerce Product Table: by Barn2 Plugins – 3.1.3
       WooCommerce Square: by WooCommerce – 4.6.1
       Woo Subscriptions: by WooCommerce – 6.2.0
       WooCommerce Table Rate Shipping: by WooCommerce – 3.1.9
       WooCommerce: by Automattic – 8.8.3
       WP File Download Addon: by Joomunited – 4.7.0
       WP File Download: by Joomunited – 6.0.5
       WP Fusion - Enhanced Ecommerce Addon: by Very Good Plugins – 1.21.1
       WP Fusion: by Very Good Plugins – 3.43.1
       WP Mail SMTP Pro: by WP Mail SMTP – 4.0.2
       WP Media folder Addon: by Joomunited – 3.7.10
       WP Media folder: by Joomunited – 5.8.4
       Smush Pro: by WPMU DEV – 3.16.2 Inactive Plugins (4)
   
       WooCommerce Subscriptions CSV Importer and Exporter: by Prospress Inc – 2.1.0
       YayMail Addon for WooCommerce Subscriptions: by YayCommerce – 2.5.1
       YayMail Conditional Logic: by YayCommerce – 2.4.5
       YayMail Pro - WooCommerce Email Customizer: by YayCommerce – 3.5.0 Must Use Plugins (2)
   
       ManageWP - Worker Loader: by GoDaddy – 1.0.0
       StackCache: by Stack CP – Settings
   
       API Enabled: –
       Force SSL: –
       Currency: GBP (£)
       Currency Position: left
       Thousand Separator: ,
       Decimal Separator: .
       Number of Decimals: 2
       Taxonomies: Product Types: external (external)
       grouped (grouped)
       mix and match (mix-and-match)
       simple (simple)
       subscription (subscription)
       variable (variable)
       variable subscription (variable-subscription)
   
       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: –
       Enforce Approved Product Download Directories: ✔
       HPOS feature screen enabled: ✔
       HPOS feature enabled: ✔
       Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore
       HPOS data sync enabled: ✔ Logging
   
       Enabled: ✔
       Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2
       Retention period: 30 days
       Level threshold: –
       Log directory size: 928 KB WC Pages
   
       Shop base: #54 - /shop/
       Basket: ❌ Page does not contain the [woocommerce_cart] shortcode or the woocommerce/cart block.
       Checkout: #71 - /checkout/
       My account: #72 - /my-account/
       Terms and conditions: ❌ Page not set Theme
   
       Name: WPA 2023
       Version: 1.0.1
       Author URL: https://www.cagedfish.co.uk
       Child Theme: ✔
       Parent Theme Name: Hello Elementor
       Parent Theme Version: 3.0.1
       Parent Theme Author URL: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
       WooCommerce Support: ✔ Templates
   
       Overrides: – Subscriptions
   
       WCS_DEBUG: ✔ No
       Subscriptions Mode: ✔ Live
       Subscriptions Live URL: https://www.pheasant.org.uk
       Subscriptions-core Library Version: 7.0.0
       Subscriptions Template Theme Overrides: WPA/woocommerce/emails/customer-renewal-invoice.php
       Subscription Statuses: trash: 12
       wc-active: 218
       wc-on-hold: 16
   
       WooCommerce Account Connected: ❌ No
       Custom Retry Rules: ✔ No
       Custom Retry Rule Class: ✔ No
       Custom Raw Retry Rule: ✔ No
       Custom Retry Rule: ✔ No
       Retries Migration Status: ✔ Completed
       Report Cache Enabled: ✔ Yes
       Cache Update Failures: ✔ 0 failure Store Setup
   
       Country / State: United Kingdom (UK) Subscriptions by Payment Gateway
   
       Square: wc-active: 2 Payment Gateway Support
   
       Square: products
       card_types
       customer_decline_messages
       payment_form
       authorization
       charge
       charge-virtual
       capture_charge
       refunds
       voids
       customer_id
       tokenization
       add_payment_method
       token_editor
       subscriptions
       subscription_suspension
       subscription_cancellation
       subscription_reactivation
       subscription_amount_changes
       subscription_date_changes
       multiple_subscriptions
       subscription_payment_method_change_customer
       subscription_payment_method_change_admin Mix and Match Products
   
       Version: 2.7.0
       Database Version: 2.7.0
       Template Overrides: – Geolocation debug info
   
       Default customer location: geolocation
       MaxMind GeoIP database: ✔
       MaxMind GeoIP license: ✔
       MM_COUNTRY_CODE: ❌
       GEOIP_COUNTRY_CODE: ❌
       HTTP_CF_IPCOUNTRY: ❌
       HTTP_X_COUNTRY_CODE: ❌
       HTTP_X_REAL_IP: ❌
       HTTP_X_FORWARDED_FOR: 84.67.255.229
       REMOTE_ADDR: 84.67.255.229
       Real external IP: 84.67.255.229
       WCPBC_USE_REMOTE_ADDR: –
       Geolocation Test: ✔ PBC Settings
   
       Version: 3.4.5 (1706283539)
       Base location: GB
       Base currency: GBP
       Price Based On: billing
       Shipping: ✔
       Test mode: –
       Test country: –
       Load products price in background: ✔
       Currency format: [symbol-alt][price]
       Exchange rate API: floatrates
       Prices entered with tax: –
       Calculate tax based on: shipping
       Display prices in the shop: excl Zone Pricing UK
   
       zone_id: uk
       enabled: yes
       name: UK
       countries: GB
       currency: GBP
       exchange_rate: 1
       auto_exchange_rate: no
       disable_tax_adjustment: no
       order: 9999
       real_exchange_rate: 1
       exchange_rate_fee: 0
       round_nearest:
       round_after_taxes: no
       currency_format:
       price_thousand_sep:
       price_decimal_sep:
       price_num_decimals:
       trim_zeros: no
       price_charm: Zone Pricing Non UK
   
       zone_id: non-uk
       enabled: yes
       name: Non UK
       countries: AF | AX | AL | DZ | AS | AD | AO | AI | AQ | AG | AR | AM | AW | AU | AT | AZ | BS | BH | BD | BB | BY | PW | BE | BZ | BJ | BM | BT | BO | BQ | BA | BW | BV | BR | IO | BN | BG | BF | BI | KH | CM | CA | CV | KY | CF | TD | CL | CN | CX | CC | CO | KM | CG | CD | CK | CR | HR | CU | CW | CY | CZ | DK | DJ | DM | DO | EC | EG | SV | GQ | ER | EE | SZ | ET | FK | FO | FJ | FI | FR | GF | PF | TF | GA | GM | GE | DE | GH | GI | GR | GL | GD | GP | GU | GT | GG | GN | GW | GY | HT | HM | HN | HK | HU | IS | IN | ID | IR | IQ | IE | IM | IL | IT | CI | JM | JP | JE | JO | KZ | KE | KI | KW | KG | LA | LV | LB | LS | LR | LY | LI | LT | LU | MO | MG | MW | MY | MV | ML | MT | MH | MQ | MR | MU | YT | MX | FM | MD | MC | MN | ME | MS | MA | MZ | MM | NA | NR | NP | NL | NC | NZ | NI | NE | NG | NU | NF | KP | MK | MP | NO | OM | PK | PS | PA | PG | PY | PE | PH | PN | PL | PT | PR | QA | RE | RO | RU | RW | ST | BL | SH | KN | LC | SX | MF | PM | VC | WS | SM | SA | SN | RS | SC | SL | SG | SK | SI | SB | SO | ZA | GS | KR | SS | ES | LK | SD | SR | SJ | SE | CH | SY | TW | TJ | TZ | TH | TL | TG | TK | TO | TT | TN | TR | TM | TC | TV | UG | UA | AE | US | UM | UY | UZ | VU | VA | VE | VN | VG | VI | WF | EH | YE | ZM | ZW
       currency: GBP
       exchange_rate: 1
       auto_exchange_rate: no
       disable_tax_adjustment: no
       order: 9999
       real_exchange_rate: 1
       exchange_rate_fee: 0
       round_nearest:
       round_after_taxes: no
       currency_format:
       price_thousand_sep:
       price_decimal_sep:
       price_num_decimals:
       trim_zeros: no
       price_charm: Square
   
       Environment: Production
       Tokenization Enabled: ✔
       Debug Mode: Save to Log Admin
   
       Enabled Features: activity-panels
       analytics
       product-block-editor
       coupons
       core-profiler
       customize-store
       customer-effort-score-tracks
       import-products-task
       experimental-fashion-sample-products
       shipping-smart-defaults
       shipping-setting-tour
       homescreen
       marketing
       mobile-app-banner
       navigation
       onboarding
       onboarding-tasks
       product-variation-management
       product-virtual-downloadable
       product-external-affiliate
       product-grouped
       product-linked
       product-pre-publish-modal
       remote-inbox-notifications
       remote-free-extensions
       payment-gateway-suggestions
       shipping-label-banner
       subscriptions
       store-alerts
       transient-notices
       woo-mobile-welcome
       wc-pay-promotion
       wc-pay-welcome-page
   
       Disabled Features: minified-js
       new-product-management-experience
       product-custom-fields
       settings
       async-product-editor-category-field
       launch-your-store
   
       Daily Cron: ✔ Next scheduled: 2024-05-09 12:26:00 +01:00
       Options: ✔
       Notes: 82
       Onboarding: completed Action Scheduler
   
       Complete: 665
       Oldest: 2024-05-01 16:33:34 +0100
       Newest: 2024-05-08 15:55:04 +0100
   
       Failed: 4
       Oldest: 2024-04-30 15:45:31 +0100
       Newest: 2024-05-07 15:03:35 +0100
   
       Pending: 446
       Oldest: 2024-05-08 16:22:41 +0100
       Newest: 2026-03-26 12:50:12 +0000 Status report information
   
       Generated at: 2024-05-08 16:10:13 +01:00
       `
       ```
   
 *  Plugin Support [omarfpg a11n](https://wordpress.org/support/users/omarfpg/)
 * (@omarfpg)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17741888)
 * Thank you so much for bringing this to our attention. However, since this relates
   to a premium extension ([Woo Subscriptions](https://woocommerce.com/products/woocommerce-subscriptions/)),
   please get in touch with us directly via [[Woo.com → My Account → Support](https://woo.com/my-account/create-a-ticket/?form=ticket)]
   for further help with this.
 * You may need to log in to the account used to purchase the extension before you
   can access that page. As per the [[forum guidelines](https://wordpress.org/support/guidelines/#do-not-post-about-commercial-products)],
   no support for premium extensions is provided here, but we will be happy to assist
   you further from there.
 * Thanks!
   -OP
 *  Thread Starter [martiniboy](https://wordpress.org/support/users/martiniboy/)
 * (@martiniboy)
 * [2 years, 1 month ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17743304)
 * Ok thanks for getting back to me, I didnt realise this was a premium plugin, 
   subscriptions work with other payment gateways with no issues ie. PayPal, Stripe
   only with the Woocommerce Square gateway there appears to be an issue, so not
   how it is the woocommerce subscriptions plugin issue. I will repeat my support
   over on Woo, hopefully they don’t redirect me back to your support. Thanks.
 *  Thread Starter [martiniboy](https://wordpress.org/support/users/martiniboy/)
 * (@martiniboy)
 * [2 years ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17757423)
 * Further to my last message – havent heard back from woo subscriptions – however,
   I found that Paypal had the same issue back in 2019 which they corrected [Don’t require address for renewal of virtual subscriptions · Issue #576 · woocommerce/woocommerce-gateway-paypal-express-checkout · GitHub](https://github.com/woocommerce/woocommerce-gateway-paypal-express-checkout/issues/576)
   so this is surely at the payment gateway not at the subscription level?
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17759392)
 * Hi [@martiniboy](https://wordpress.org/support/users/martiniboy/)
 * You mentioned that everything is working fine with simple products. Have you 
   had a chance to test with regular variable products?
 * I’ve tried to replicate your issue on my testing site, using Simple and Variable
   products and subscription variable type products. I didn’t encounter any problems.
   However, one of our Happiness Engineers will be in touch soon, so it might be
   best to wait a bit.
 * In the meantime, if you think there’s a bug in the WooCommerce Square plugin 
   that the developer should be aware of, feel free to create a bug report on [our GitHub repo](https://github.com/woocommerce/woocommerce-square/issues).
 * I hope this provides some clarity. Please let us know if you have any other questions!
    -  This reply was modified 2 years ago by [Shameem - a11n](https://wordpress.org/support/users/shameemreza/).
 *  Thread Starter [martiniboy](https://wordpress.org/support/users/martiniboy/)
 * (@martiniboy)
 * [2 years ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17759574)
 * Thanks for your reply – when you tried to replicate it did you try with a virtual
   subscripton variable and no shipping details in the account for the user? Also
   in my instance mine are renewals after subscriptions manually set up after migrating
   from other platform.
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [2 years ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17759672)
 * Hi [@martiniboy](https://wordpress.org/support/users/martiniboy/)
 * > when you tried to replicate it did you try with a virtual subscripton variable
   > and no shipping details in the account for the user?
 * Yes, I have tested with a virtual subscription variable product, with no shipping
   details in the account.
 * ![](https://i0.wp.com/s12.gifyu.com/images/SfssE.gif?ssl=1)
 * ![](https://i0.wp.com/s12.gifyu.com/images/SfsxL.gif?ssl=1)
 * > Also in my instance mine are renewals after subscriptions manually set up after
   > migrating from other platform.
 * This could be a possible reason for the issue you’re experiencing. However, could
   you try setting the “Shipping destination” to “Force shipping to the customer
   billing address” and see if that solves the problem?
 * Let us know how that goes. Looking forward to helping you.
 *  Plugin Support [omarfpg a11n](https://wordpress.org/support/users/omarfpg/)
 * (@omarfpg)
 * [2 years ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17760328)
 * Hey [@martiniboy](https://wordpress.org/support/users/martiniboy/),
 * > Also in my instance mine are renewals after subscriptions manually set up after
   > migrating from other platform.
 * Another thing that’s interesting following up from this message is the migration
   part, which other platform did you migrate your subscriptions from? Only migrated
   subscriptions are presenting this issue? New recurrent subscriptions made on 
   the new platform are ok?
 * Please let us know.
   -OP
 *  Thread Starter [martiniboy](https://wordpress.org/support/users/martiniboy/)
 * (@martiniboy)
 * [2 years ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17762214)
 * Thanks for your reply, I have changed to force shipping to billing address, wil
   have to wait until the next renewal, will this mean in the shop side of the website
   that customers will have to get their items shipped to their billing address?
   
   Regarding the importing – the users came from a non wordpress system so had to
   amend the csv import to the woocommerce structure, and looking at the user information
   on the profile all the information is correct, but if any hidden meta is needed
   I may have missed it.I have been through and copied the users billing info to
   the shipping info and hopefully this will solve it. Although in most cases they
   appeared to be the same.Will wait and see the next renewal – thanks for your 
   help
 *  [carolm29 (woo-hc)](https://wordpress.org/support/users/carolm29/)
 * (@carolm29)
 * [2 years ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17763778)
 * Hey, [@martiniboy](https://wordpress.org/support/users/martiniboy/) !
 * > will this mean in the shop side of the website that customers will have to 
   > get their items shipped to their billing address?
 * Yes, this option will force the shipping to be the same as the billing address.
 * > Will wait and see the next renewal
 * All right! Please let us know how it goes.
 * Looking forward to your reply.
 * Have a wonderful day!

Viewing 11 replies - 1 through 11 (of 11 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

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

 * 11 replies
 * 4 participants
 * Last reply from: [carolm29 (woo-hc)](https://wordpress.org/support/users/carolm29/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/square-payment-failed-status-code-invalid_enum_value-2/#post-17763778)
 * Status: resolved