An error occurred, please try again or try an alternate form of payment
-
Hi – we are having difficulties taking payments through Square. It always produces the error “An error occurred, please try again or try an alternate form of payment”.
I have tried in Sandbox mode and it works perfectly, but not when I switch to production.
The page I need help with: [log in to see the link]
-
Hi @sagraphics,
we are having difficulties taking payments through Square. It always produces the error “An error occurred, please try again or try an alternate form of payment”.
I’m sorry to see you’re encountering an error when processing payments with Square. I’d first like to ask you to take a look at the linked section of the support article below, can you confirm your site meets all of these requirements and is configured properly?
https://docs.woocommerce.com/document/woocommerce-square/#section-44
If so, please head over to WooCommerce > Settings > Square and select “Enable Logging”. Once you’ve done this test your transaction again, you should then head over to WooCommerce > Status > Logs, to find the log generated for the transaction. Please share the contents of that log in your reply so we can review it for you.
All configuration looks as it should be. The store is located in the UK and the default currency (we do use multicurrency but checkout is always defaulted to Pound Sterling).
08-03-2021 @ 10:10:14 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.1 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.3704s 08-03-2021 @ 10:10:14 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:10:14 GMT [Content-Length] => 923 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "76GNSQ1J695YZ", "name": "Strumpet and Trollop", "address": { "address_line_1": "Unit 4 Gate 3", "address_line_2": "The Sidings Business Park", "locality": "Skipton", "administrative_district_level_1": "North Yorkshire", "postal_code": "BD231TB", "country": "GB" }, "timezone": "Europe\/London", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2019-03-13T11:09:38Z", "merchant_id": "H5KRJXC8DMHD8", "country": "GB", "language_code": "en-GB", "currency": "GBP", "phone_number": "+44 1756 798818", "business_name": "Strumpet and Trollop", "type": "PHYSICAL", "website_url": "www.strumpetandtrollop.com", "business_hours": {}, "instagram_username": "sandtcompostingtoilets", "facebook_url": "https:\/\/www.facebook.com\/strumpetandtrollop\/", "coordinates": { "latitude": 53.957621, "longitude": -2.031462 }, "logo_url": "https:\/\/d1g145x70srn7h.cloudfront.net\/files\/d51f53e69b202221b99a97ce3acd335786592ef0\/original.png" } ] } 08-03-2021 @ 10:10:24 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.1 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.47689s 08-03-2021 @ 10:10:24 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:10:24 GMT [Content-Length] => 923 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "76GNSQ1J695YZ", "name": "Strumpet and Trollop", "address": { "address_line_1": "Unit 4 Gate 3", "address_line_2": "The Sidings Business Park", "locality": "Skipton", "administrative_district_level_1": "North Yorkshire", "postal_code": "BD231TB", "country": "GB" }, "timezone": "Europe\/London", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2019-03-13T11:09:38Z", "merchant_id": "H5KRJXC8DMHD8", "country": "GB", "language_code": "en-GB", "currency": "GBP", "phone_number": "+44 1756 798818", "business_name": "Strumpet and Trollop", "type": "PHYSICAL", "website_url": "www.strumpetandtrollop.com", "business_hours": {}, "instagram_username": "sandtcompostingtoilets", "facebook_url": "https:\/\/www.facebook.com\/strumpetandtrollop\/", "coordinates": { "latitude": 53.957621, "longitude": -2.031462 }, "logo_url": "https:\/\/d1g145x70srn7h.cloudfront.net\/files\/d51f53e69b202221b99a97ce3acd335786592ef0\/original.png" } ] } 08-03-2021 @ 10:13:25 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.1 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.60867s 08-03-2021 @ 10:13:25 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:13:25 GMT [Content-Length] => 923 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "76GNSQ1J695YZ", "name": "Strumpet and Trollop", "address": { "address_line_1": "Unit 4 Gate 3", "address_line_2": "The Sidings Business Park", "locality": "Skipton", "administrative_district_level_1": "North Yorkshire", "postal_code": "BD231TB", "country": "GB" }, "timezone": "Europe\/London", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2019-03-13T11:09:38Z", "merchant_id": "H5KRJXC8DMHD8", "country": "GB", "language_code": "en-GB", "currency": "GBP", "phone_number": "+44 1756 798818", "business_name": "Strumpet and Trollop", "type": "PHYSICAL", "website_url": "www.strumpetandtrollop.com", "business_hours": {}, "instagram_username": "sandtcompostingtoilets", "facebook_url": "https:\/\/www.facebook.com\/strumpetandtrollop\/", "coordinates": { "latitude": 53.957621, "longitude": -2.031462 }, "logo_url": "https:\/\/d1g145x70srn7h.cloudfront.net\/files\/d51f53e69b202221b99a97ce3acd335786592ef0\/original.png" } ] } 08-03-2021 @ 10:14:00 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.1 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.62678s 08-03-2021 @ 10:14:00 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:14:00 GMT [Content-Length] => 462 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "L1SP5DH1GHAEZ", "name": "Default Test Account", "address": { "address_line_1": "10 Downing St", "locality": "London", "postal_code": "SW1A 2AA", "country": "GB" }, "timezone": "UTC", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2021-06-29T09:35:38Z", "merchant_id": "MLT72TC8DBAK7", "country": "GB", "language_code": "en-GB", "currency": "GBP", "business_name": "Default Test Account", "type": "PHYSICAL", "business_hours": {} } ] } 08-03-2021 @ 10:15:26 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.1 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.65746s 08-03-2021 @ 10:15:26 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:15:26 GMT [Content-Length] => 462 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "L1SP5DH1GHAEZ", "name": "Default Test Account", "address": { "address_line_1": "10 Downing St", "locality": "London", "postal_code": "SW1A 2AA", "country": "GB" }, "timezone": "UTC", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2021-06-29T09:35:38Z", "merchant_id": "MLT72TC8DBAK7", "country": "GB", "language_code": "en-GB", "currency": "GBP", "business_name": "Default Test Account", "type": "PHYSICAL", "business_hours": {} } ] } 08-03-2021 @ 10:22:56 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.3 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.60833s 08-03-2021 @ 10:22:56 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:22:56 GMT [Content-Length] => 462 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "L1SP5DH1GHAEZ", "name": "Default Test Account", "address": { "address_line_1": "10 Downing St", "locality": "London", "postal_code": "SW1A 2AA", "country": "GB" }, "timezone": "UTC", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2021-06-29T09:35:38Z", "merchant_id": "MLT72TC8DBAK7", "country": "GB", "language_code": "en-GB", "currency": "GBP", "business_name": "Default Test Account", "type": "PHYSICAL", "business_hours": {} } ] } 08-03-2021 @ 10:23:13 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.3 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.74204s 08-03-2021 @ 10:23:13 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:23:13 GMT [Content-Length] => 462 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "L1SP5DH1GHAEZ", "name": "Default Test Account", "address": { "address_line_1": "10 Downing St", "locality": "London", "postal_code": "SW1A 2AA", "country": "GB" }, "timezone": "UTC", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2021-06-29T09:35:38Z", "merchant_id": "MLT72TC8DBAK7", "country": "GB", "language_code": "en-GB", "currency": "GBP", "business_name": "Default Test Account", "type": "PHYSICAL", "business_hours": {} } ] } 08-03-2021 @ 10:24:22 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.3 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.36555s 08-03-2021 @ 10:24:22 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:24:22 GMT [Content-Length] => 923 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "76GNSQ1J695YZ", "name": "Strumpet and Trollop", "address": { "address_line_1": "Unit 4 Gate 3", "address_line_2": "The Sidings Business Park", "locality": "Skipton", "administrative_district_level_1": "North Yorkshire", "postal_code": "BD231TB", "country": "GB" }, "timezone": "Europe\/London", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2019-03-13T11:09:38Z", "merchant_id": "H5KRJXC8DMHD8", "country": "GB", "language_code": "en-GB", "currency": "GBP", "phone_number": "+44 1756 798818", "business_name": "Strumpet and Trollop", "type": "PHYSICAL", "website_url": "www.strumpetandtrollop.com", "business_hours": {}, "instagram_username": "sandtcompostingtoilets", "facebook_url": "https:\/\/www.facebook.com\/strumpetandtrollop\/", "coordinates": { "latitude": 53.957621, "longitude": -2.031462 }, "logo_url": "https:\/\/d1g145x70srn7h.cloudfront.net\/files\/d51f53e69b202221b99a97ce3acd335786592ef0\/original.png" } ] } 08-03-2021 @ 10:39:44 - Request Request method: uri: listLocationsWithHttpInfo user-agent: WooCommerce-Square/2.5.3 (WooCommerce/5.3.1; WordPress/5.7.2) headers: Array ( ) body: duration: 0.61749s 08-03-2021 @ 10:39:44 - Response Response code: 200 message: headers: Array ( [0] => HTTP/1.1 200 OK [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] => Tue, 03 Aug 2021 09:39:44 GMT [Content-Length] => 917 [Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload ) body: { "locations": [ { "id": "76GNSQ1J695YZ", "name": "Strumpet and Trollop", "address": { "address_line_1": "Unit 4 Gate 3", "address_line_2": "The Sidings Business Park", "locality": "Skipton", "postal_code": "BD231TB", "country": "GB" }, "timezone": "Europe\/London", "capabilities": [ "CREDIT_CARD_PROCESSING" ], "status": "ACTIVE", "created_at": "2019-03-13T11:09:38Z", "merchant_id": "H5KRJXC8DMHD8", "country": "GB", "language_code": "en-GB", "currency": "GBP", "phone_number": "+44 1756 798818", "business_name": "Strumpet and Trollop", "type": "PHYSICAL", "website_url": "www.strumpetandtrollop.com", "business_hours": {}, "business_email": "[email protected]", "instagram_username": "sandtcompostingtoilets", "facebook_url": "https:\/\/www.facebook.com\/strumpetandtrollop\/", "coordinates": { "latitude": 53.957621, "longitude": -2.031462 }, "logo_url": "https:\/\/d1g145x70srn7h.cloudfront.net\/files\/d51f53e69b202221b99a97ce3acd335786592ef0\/original.png" } ] }
08-04-2021 @ 10:58:46 – Request
Request
method:
uri: listLocationsWithHttpInfo
user-agent: WooCommerce-Square/2.5.3 (WooCommerce/5.3.1; WordPress/5.7.2)
headers: Array
(
)
body:
duration: 0.37113s08-04-2021 @ 10:58:46 – Response
Response
code: 200
message:
headers: Array
(
[0] => HTTP/1.1 200 OK
[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] => Wed, 04 Aug 2021 09:58:46 GMT
[Content-Length] => 917
[Strict-Transport-Security] => max-age=631152000; includeSubDomains; preload
)
body: {
“locations”: [
{
“id”: “76GNSQ1J695YZ”,
“name”: “Strumpet and Trollop”,
“address”: {
“address_line_1”: “Unit 4 Gate 3”,
“address_line_2”: “The Sidings Business Park”,
“locality”: “Skipton”,
“postal_code”: “BD231TB”,
“country”: “GB”
},
“timezone”: “Europe\/London”,
“capabilities”: [
“CREDIT_CARD_PROCESSING”
],
“status”: “ACTIVE”,
“created_at”: “2019-03-13T11:09:38Z”,
“merchant_id”: “H5KRJXC8DMHD8”,
“country”: “GB”,
“language_code”: “en-GB”,
“currency”: “GBP”,
“phone_number”: “+44 1756 798818”,
“business_name”: “Strumpet and Trollop”,
“type”: “PHYSICAL”,
“website_url”: “www.strumpetandtrollop.com”,
“business_hours”: {},
“business_email”: “[email protected]”,
“instagram_username”: “sandtcompostingtoilets”,
“facebook_url”: “https:\/\/www.facebook.com\/strumpetandtrollop\/”,
“coordinates”: {
“latitude”: 53.957621,
“longitude”: -2.031462
},
“logo_url”: “https:\/\/d1g145x70srn7h.cloudfront.net\/files\/d51f53e69b202221b99a97ce3acd335786592ef0\/original.png”
}
]
}08-03-2021 @ 10:31:17 – 3D Secure Verification Token is missing
08-03-2021 @ 10:37:43 – 3D Secure Verification Token is missing
08-03-2021 @ 10:37:44 – Square.js Response:
Array
(
[0] => Array
(
[type] => UNAUTHORIZED
[message] => Request not authorized.
))
Hi @sagraphics
Please contact us at WooCommerce.com > My Account > Support. You may need to create an account before you can access that page.
Please include a link to this forum thread, so that we can keep track of what’s already been done.
We will be able to help you further there.
- The topic ‘An error occurred, please try again or try an alternate form of payment’ is closed to new replies.