• Resolved myhope1227

    (@myhope1227)


    Square plugin was worked well, and from a few days ago, it stopped working.
    I investigated the site and found there is js error “[Analytics] A token request is already in place”
    When I tried to checkout, another error was there.
    “Uncaught FormNotReadyError: Cannot call SqPaymentForm#requestCardNonce before the paymentFormLoaded() callback.”

    Plugin loaded 3 of iframe code “https://pci-connect.squareup.com/v2/iframe?type=main&”
    and console shows 3 of “Square: Building payment form”

    I tried to fix it by deactivating all of another plugins and activated woocommerce and elementor, woocommerce square plugin.
    But it was same.
    Also woocommerce log shows “Payment nonce is missing”.

    What is the reason of it?
    How can I fix it?

    Please let me know. it is very urgent and I am almost loss my business.
    Thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Have the same errors, in checkout, updating to 2.0.8 version did not help.
    @myhope1227 you have any progress on solving this problem in your side?
    Thank you.

    Thread Starter myhope1227

    (@myhope1227)

    Hi Simone,
    I have no progress for it yet.
    Did you find something?
    Is it working on your side now?

    Thanks.

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi @myhope1227,

    In the past, whenever we’ve encountered Payment nonce is missing error – it was either caused by caching/optimisation plugins, or a plugin/theme conflict:

    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    As a first step, can you please try disabling caching/optimization plugins and checking whether this error is still present?

    Thread Starter myhope1227

    (@myhope1227)

    Hello, @grigaswp
    Thanks for your reply,
    I already fixed it by myself, and there was a conflict with Elementor plugin.
    Because all pages were build by Elementor, I didn’t deactivated Elementor plugin and tested it.
    But I think it is the problem that can avoid on your plugin.
    I found WC_Square_Payment_Form_Handler was called several times, of course it occurred because of Elementor, but you can add the logic to check it has been called or not.
    So it could be prevented to called several times.

    Thanks for your support.

    Plugin Support Grigorij S. a11n

    (@grigaswp)

    Hi @myhope1227,

    I’m glad to hear you were able to determine the source of this behaviour!

    Indeed, the compatibility between Square for WooCommerce plugin and builder plugins such as Elementor is not maintained on our side, so this would qualify as an enhancement request with our developers.

    If the support team of Elementor will not agree to take on the responsibility of maintaining compatibility with Square for WooCommerce – would you mind adding a request for compatibility with Elementor to our ideas board, along with the technical details or a link to this thread?

    https://ideas.woocommerce.com/forums/133476-woocommerce?category_id=175794&filter=top&page=2

    Our developers always take the popularity of a particular idea into account when deciding which features will they work on.

    I’ll be marking this thread as resolved, but feel free to open a new thread and link to this one if you have further questions.

    Have a wonderful day ahead!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘A token request is already in place’ is closed to new replies.