• my site install w3 total cache and WooCommerce PayPal Payments.

    And i enable the paypal icon on single product page.

    when i load a product page ,chrome console appear create order error and the detail like this

    {
    
    ? ? "err": "Could not validate nonce.",
    
    ? ? "timestamp": "1717043650362",
    
    ? ? "referer": "www.paypal.com",
    
    ? ? "sdkCorrelationID": "f896487ece7fc",
    
    ? ? "sessionID": "uid_24bb47d5e9_mdq6mzm6ndu",
    
    ? ? "clientID": "Abv6-9Ay7ShB80Xy8OrJ3LX2Bsrzw0cMEOxlHMBNQe-7fl8S5VqlraA_F3rd4QmBxTYBbGOW5ujru8gS",
    
    ? ? "env": "production",
    
    ? ? "buttonSessionID": "uid_e11b95e639_mdq6mzm6ndu",
    
    ? ? "buttonCorrelationID": "f9060362c1702",
    
    ? ? "token": null
    
    }
    

    i click the paypal icon to checkout, it can not redirect to paypal page and display error.

    then , i purge page cache,it works normally.

    This problem occurs every once in a while.

    many people use w3 total cache and woocommerce paypal payments,this problem should not occur.

    what wrong with my site

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rrruq

    (@rrruq)

    Thread Starter rrruq

    (@rrruq)

    this js file 23 line

    Thread Starter rrruq

    (@rrruq)

    Is this related to the cache? I noticed that the lifespan of the nonce is 12 hours, but the page cache lifespan is generally longer than this time. I disabled the cache plug-in and the “Could not validate nonce.” of the simulated shopping cart  js file disappeared.

    Can cache plugin and WooCommerce Paypal payments coexist?Or is there any good way to solve this problem?

    Plugin Support Krystian from Syde

    (@inpsydekrystian)

    Hello @rrruq

    Is this related to the cache?

    Yes, PayPal scripts like button.js should never be cached. You can find more information on this in their FAQ section here: WooCommerce PayPal Payments. To resolve the issue you are experiencing, you will need to ensure that this specific script is whitelisted from being cached by W3 Total Cache.

    We are also actively working on enhancing the compatibility of the PayPal Payments plugin with caching solutions. Our goal is to prevent caching issues from occurring by default in future updates, thereby eliminating similar problems.

    Please try whitelisting the PayPal script, and if you continue to encounter any difficulties, do not hesitate to get back in touch with us for further assistance.

    Kind Regards,

    Krystian

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.