Meanwhile when customer click on proceed to place order it shows following error in console :
1. Uncaught TypeError: a.sort is not a function
at n.value (wc-square.min.js:546)
at n.value (wc-square.min.js:431)
at paymentform?ver=2.1.6:1
at data.js:10
at r.callback (data.js:15)
at r.invoke (data.js:15)
at p.handleChallenges (data.js:15)
at s.messageReceived (data.js:10)
at f (data.js:1)
2. wc-square.min.js:706 Square Error: Error getting payment data
3. Failed to load resource: the server responded with a status of 400 ()
Plugin Support
slash1andy
(@slash1andy)
Automattic Happiness Engineer
Hey there!
This kind of problem is usually caused by either a conflict with your theme or with another plugin.
The best way to determine this is to:
- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
Hi, Thank you I have tested default theme and payment is working but I am unable to find which plugin conflicts , I am pasting network side error from service:
method : varification – {“errors”:[{“category”:”INVALID_REQUEST_ERROR”,”code”:”INVALID_ENUM_VALUE”,”detail”:” is not a valid enum value for verification_details.billing_contact.country.”,”field”:”verification_details.billing_contact.country”}]}
Plugin Support
slash1andy
(@slash1andy)
Automattic Happiness Engineer
That usually means there’s a JavaScript error there, a lot of times that means the theme is not parsing the fields properly.
I would say that’s a good place to start
Hi, I have solved above varification method erro now I am facing following error:
An error occurred, please try again or try an alternate form of payment.
Square: Payment nonce present, placing order in console
08-09-2020 @ 07:06:07 – Response
code: 400
message:
headers: Array
(
[0] => HTTP/2 400
[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] => Sun, 09 Aug 2020 07:06:07 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
)
)
)
08-09-2020 @ 07:06:07 - Status code INVALID_ENUM_VALUE: is not a valid enum value for billing_address.country.
Marking as resolved since there are 3 other support topics related to the same issue.
Please continue the discussion at https://wordpress.org/support/topic/square-payment/ for further troubleshooting.