Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
  • #1063231


    We are currently using WooCommerce for our website’s online store. We use both the PayPal Checkout Gateway and WooCommerce Square Gateway.

    Over the past couple of weeks, we have seen about 10 or so failed orders across our different sites with the following error message:

    [0] => stdClass Object
    [category] => INVALID_REQUEST_ERROR
    [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.

    After reading the Square API Resource Page, my best guess would be it’s a communication issue between WooCommerce – Theme – Square

    Thank you in advance for any additional information, help or fixes!




    Hey npmcgrew,

    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.

    Best regards,



    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 ?

    Best regards,


    Hi All,

    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!



    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:

    But that has nothing to do with Enfold.

    Did you already try to deactivate all other plugins except WC and this payment gateway?

    Best regards,


    Hi Gunter,

    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!

    – Neil



    You can check for js errors in the console or in backend in the php error log – but it’s probably very hard to locate and fix.

    Best regards,

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.