Square Payment Failed (Status code INVALID_ENUM_VALUE: …

[ad_1]

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:00Notice Request method: uri: createOrder user-agent: WooCommerce-Square/4.6.1 (WooCommerce/8.8.3; WordPress/6.5.3) headers: Array ( ) body: duration: 0.40549s CONTEXT: {“_legacy”:true} 2024-05-08T11:50:42+00:00Notice Response code: 200 message: headers: Array ( [0] => HTTP/2 200 [date] => Wed, 08 May 2024 11:50:42 GMT [content-type] => application/json;charset=utf-8 [content-length] => 452 [cf-ray] => 88093bcf484623f9-LHR [cf-cache-status] => DYNAMIC [content-encoding] => gzip [strict-transport-security] => max-age=631152000; includeSubDomains; preload [vary] => Accept-Encoding [frame-options] => DENY [square-version] => 2023-07-20 [x-content-type-options] => nosniff [x-envoy-decorator-operation] => /v2/orders/** [x-frame-options] => DENY [x-sq-dc] => sjc3b [x-sq-region] => sjc3b [x-xss-protection] => 1; mode=block [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 [server] => cloudflare ) body: { “order”: { “id”: “hBf0zpJ9ztaGJlFbJEj5mQQEfxNZY”, “location_id”: “LX86K1D232ADS”, “reference_id”: “4585”, “source”: { “name”: “WooCommerce” }, “customer_id”: “5PT8KP70PGH8CSMSVV7H80TAJ4”, “line_items”: [ { “uid”: “a3TIEiqxcqRlyfbfHGf1BD”, “name”: “Membership – Individual”, “quantity”: “1”, “item_type”: “ITEM”, “base_price_money”: { “amount”: 3000, “currency”: “GBP” }, “variation_total_price_money”: { “amount”: 3000, “currency”: “GBP” }, “gross_sales_money”: { “amount”: 3000, “currency”: “GBP” }, “total_tax_money”: { “amount”: 0, “currency”: “GBP” }, “total_discount_money”: { “amount”: 0, “currency”: “GBP” }, “total_money”: { “amount”: 3000, “currency”: “GBP” }, “total_service_charge_money”: { “amount”: 0, “currency”: “GBP” } } ], “net_amounts”: { “total_money”: { “amount”: 3000, “currency”: “GBP” }, “tax_money”: { “amount”: 0, “currency”: “GBP” }, “discount_money”: { “amount”: 0, “currency”: “GBP” }, “tip_money”: { “amount”: 0, “currency”: “GBP” }, “service_charge_money”: { “amount”: 0, “currency”: “GBP” } }, “created_at”: “2024-05-08T11:50:41.970Z”, “updated_at”: “2024-05-08T11:50:41.970Z”, “state”: “OPEN”, “version”: 1, “total_money”: { “amount”: 3000, “currency”: “GBP” }, “total_tax_money”: { “amount”: 0, “currency”: “GBP” }, “total_discount_money”: { “amount”: 0, “currency”: “GBP” }, “total_tip_money”: { “amount”: 0, “currency”: “GBP” }, “total_service_charge_money”: { “amount”: 0, “currency”: “GBP” }, “net_amount_due_money”: { “amount”: 3000, “currency”: “GBP” } } } CONTEXT: {“_legacy”:true} 2024-05-08T11:50:42+00:00Notice Request method: uri: createPayment user-agent: WooCommerce-Square/4.6.1 (WooCommerce/8.8.3; WordPress/6.5.3) headers: Array ( ) body: duration: 0.19604s CONTEXT: {“_legacy”:true} 2024-05-08T11:50:42+00:00Notice Response code: 400 message: headers: Array ( [0] => HTTP/2 400 [date] => Wed, 08 May 2024 11:50:42 GMT [content-type] => application/json [content-length] => 196 [cf-ray] => 88093bd16abb23f9-LHR [cf-cache-status] => DYNAMIC [strict-transport-security] => max-age=631152000; includeSubDomains; preload [frame-options] => DENY [x-content-type-options] => nosniff [x-envoy-decorator-operation] => /v2/payments/** [x-frame-options] => DENY [x-sq-dc] => aws [x-sq-region] => us-west-2 [x-xss-protection] => 1; mode=block [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 [vary] => Accept-Encoding [server] => cloudflare ) body: Array ( [0] => Square\Models\Error Object ( [category:Square\Models\Error:private] => INVALID_REQUEST_ERROR [code:Square\Models\Error:private] => INVALID_ENUM_VALUE [detail:Square\Models\Error:private] => is not a valid enum value for Country (line 1, character 881) [field:Square\Models\Error:private] => shipping_address.country ) ) CONTEXT: {“_legacy”:true} 2024-05-08T11:50:42+00:00Notice 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 to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer