• Resolved Tom

    (@tomwenk)


    Hey, I use Stripe and WooCommerce. I have variable products in my shop. As soon as I click on another product variant, the Apple Pay button and the Google Pay button no longer load.
    I cache the page with WP-Rocket.
    I absolutely need a solution for this.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support wpnomad a11n

    (@wpnomad)

    Hi @tomwenk ,

    I checked your site and I see that one of the required requests results in error 403 when a variation is selected. Please see this screenshot: https://d.pr/i/yKgNbx

    Error 403 basically means something on the server is preventing the request from being authorized. You can find more about it here: https://httpstatuses.com/403

    I recommend doing a conflict test on your site to check if this is caused by a plugin or the theme. You can do a conflict test by following the instructions here: https://docs.woocommerce.com/document/woocommerce-self-service-guide/#section-4

    If that doesn’t help, then I recommend checking with your host to see if the server’s firewall is blocking the requests.

    Do let us know how that goes.

    Thread Starter Tom

    (@tomwenk)

    I checked in with the hosting again. There are no errors whatsoever with them. We use the WP Rocket caching plugin on our site. When I activate this plugin, the error occurs. If it is deactivated, everything works. Is there a js file or a css file that I can explicitly exclude from caching so that it might work?

    Hi there @tomwenk,

    I found this WP Rocket doc on 403 errors: https://docs.wp-rocket.me/article/706-resolve-403-forbidden-error where it says:

    If you are getting a 403 error on AJAX requests, it could be due to the presence of a nonce that is used to validate the request. Setting the Clear Cache Lifespan to 10 hours or less should resolve this.

    So that would be the first step I’d try for sure. If it doesn’t help, please reach out to WP Rocket support to find what would be the best workaround here. We haven’t developed this plugin so we can’t say how it caches pages exactly.

    I’m going to mark this as resolved since we found a conflicting plugin causing the issue – if you have any further questions, you can start a new thread.

    Enjoy the rest of your week and stay safe!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Apple-Pay/Google-Pay vs. WP Rocket’ is closed to new replies.