Plugin Support
slash1andy
(@slash1andy)
Automattic Happiness Engineer
Hey there!
You are correct, you do need to enable that setting in WooCommerce to allow your customers to save their cards. If you are not getting that error with regular sales, and getting the error after checking that, then there’s likely an issue with your Square account, perhaps it’s not set up to allow customers to save cards. I would recommend getting in contact with them to confirm that is the case (that your account is allowed to save cards).
I’ll check with square. It is frustrating not being able to take orders as I am constantly getting an error. Thanks for the reply and I’ll post back on here once I hear back from square
Hi there @tgar8033,
I’m sorry to hear that the issue is not resolved.
While you’re checking with Square, can I ask you to run one more test for us which may help determine what’s going on?
– enabled logging in WooCommerce > Settings > Payments > Square: https://d.pr/i/SwW3xc
– place a test order on your site. You can create a test product with a $1 price to do that.
– check logs in WooCommerce > Status > Logs > choose square_credit_card from the drop-down: https://d.pr/i/eNZDfM
Do you see any error there? If yes, can you please share it with us? Please redact any personal and sensitive information from there before posting.
Looking forward to hearing back from you!
hello Elvira, followed all your steps and this is what i get:
06-07-2020 @ 15:00:11 – Square.js Response:
Array
(
[digital_wallet_type] => NONE
[card_brand] => VISA
[last_4] => XXXX
[exp_month] => X
[exp_year] => XXXX
[billing_postal_code] => XXXXX
)
06-07-2020 @ 15:00:12 – Square.js Response:
Array
(
[code] => INVALID_ENUM_VALUE
[type] => INVALID_REQUEST_ERROR
[message] => is not a valid enum value for verification_details.billing_contact.country.: verification_details.billing_contact.country
)
Any idea what could be wrong! thanks so much once again for your help
Hi there @tgar8033,
Thank you for the log! It is very helpful.
I saw the same error on sites where some of the checkout fields have been hidden.
Did you alter any of your checkout fields? If yes, does the payment go through if you roll back these changes?
Let me know how that goes!
@treibalen thank you so much for the help! it worked!
Hi there @tgar8033,
You’re very welcome, I’m glad to hear that you figured it out 🙂
I’ll mark the thread as Resolved now. Enjoy the rest of your day and stay safe!