Tagged: Enfold Square WooCommerce
February 5, 2019 at 5:24 pm #1063231
Over the past couple of weeks, we have seen about 10 or so failed orders across our different sites with the following error message:
 => stdClass Object
[category] => INVALID_REQUEST_ERROR
[code] => MISSING_REQUIRED_PARAMETER
[detail] => Missing required parameter.
[field] => card_nonce
Order status changed from Pending payment to Failed.
I first contacted support at WooCommerce and they noted: “That particular error happens when the theme is conflicting with the information that needs to be transferred via the gateway, like the nonce which is the encrypted card information. The best way for the theme developer to deal with that would be to look at our free Storefront theme to see how it’s handled there.” (Purchase code hidden if logged out) – (Purchase code hidden if logged out) -with/td-p/73107″>Square’s Support Forum also pointed to the same likelihood of it being a potential theme conflict that causes the issue.
Is there anything that the team at Enfold has seen in relation to this? When I test on RobotNinja, all appears to work as it should. And the error does not trigger with all customers or orders, so I am having trouble finding the root cause of the issue. There are also no Fatal Errors logged within WooCommerce when this occurs.
Thank you in advance for any additional information, help or fixes!
NeilFebruary 12, 2019 at 10:15 pm #1066108
I have notified our developers with priority in the issue as it does seems to be an important one.
We would require some patience to review it and go through it.
BasilisFebruary 13, 2019 at 12:38 pm #1066467
Thanks for reporting this.
Sounds strange – because Enfold does not hook into any checkout logic – and we did not get any similar bug reports.
Can you try to reproduce the problem and then try to disable all other not needed plugins and check ?
GünterFebruary 13, 2019 at 9:46 pm #1066652
I’ve never been able to reproduce the error on my own to get the card_nonce error. The closest thing I have been able to reproduce is that from time to time, if I’m testing the store when not initially logged in:
1 – I’ll go to the product page and add to cart. I’ll then click the floating view cart that appears. All is okay here
2 – In viewing the cart I will ‘Proceed to Checkout’ and the proper fields do show.
3 – Before editing the fields, I’ll use the ‘Returning User’ button and login to my subscriber or customer account, so no admin access on that one.
4 – The billing fields and other misc. information will autofill, which is good.
5 – When selecting the Square payment option then, no ••••• symbols appear in the placeholder. Instead, it’ll just be a solid gray line through all of the credit card information and cannot be edited. A refreshing of the page allowed me to do this, but I’m wondering if it’s a similarly caused issue as the card_nonce seems it could be that way. For one of the customer who did receive the card_nonce error, he described that he never plugged any card information in because it wouldn’t let him. Granted, he is an elderly gentleman, so who knows what other variable could have affected this.
Thank you in advance for any guidance!February 14, 2019 at 12:29 pm #1066929
I had a look at your site and tried it. After entering data in the required fields I got the ****.
In my opinion – if it would be a problem with the theme then it would be reproduceable and occur more often.
And Enfold does not hook into any “communication” on the checkout page.
The only thing I see is in the console is on pageload:
SyntaxError: identifier starts immediately after numeric literal view-source:https://app.viralsweep.com/promo/ca/47740-38377_1549992181
But that has nothing to do with Enfold.
Did you already try to deactivate all other plugins except WC and this payment gateway?
GünterFebruary 25, 2019 at 5:17 pm #1071360
Apologies for the slow reply as I have been out of the office with the flu.
That’s very strange in regards to the Viral Sweep page load as that’s a contest service we use to grow email subscribers. It’s usually just a quick and easy line of code I insert into a code block on a landing page. Granted, we’re not currently using it and there haven’t been any card_nonce issues recently, so I suppose it could be a culprit.
If this happens again in the future, what would you suggest looking for using Google Developer Console to pinpoint?
Thanks again for all of the help!
– NeilFebruary 26, 2019 at 11:29 am #1071714
You must be logged in to reply to this topic.