Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Clayton R

    (@mrclayton)

    Hi @daki22,

    This is being caused by your cache plugin settings. Make sure you set js.stripe.com to be excluded and don’t defer loading of that script.

    Kind Regards,

    Thread Starter daki22

    (@daki22)

    Can you lease send me, where is that file on my website?
    Link, please

    Plugin Author Clayton R

    (@mrclayton)

    It’s not a file on your website, it’s a setting in the cache plugin that you’re using. You will need to consult the documentation for your cache plugin.

    Kind Regards,

    Thread Starter daki22

    (@daki22)

    Excluded JavaScript Files
    Specify URLs or keywords of JavaScript files to be excluded from defer (one per line)

    what to add there

    Thread Starter daki22

    (@daki22)

    Hello there is autoptimize and fastest cache on booth I add this script, but issue is still there

    Plugin Author Clayton R

    (@mrclayton)

    Hello there is autoptimize and fastest cache on booth I add this script, but issue is still there

    Trust me, this is related to your cache settings. You can go back and see there are many support requests with this exact same issue and it’s resolved by adjusting your cache settings.

    what to add there

    https://js.stripe.com/v3

    I am not the developer of your cache plugin(s) so you will need to read their documentation on where to add these scripts. You can also reach out to them as I’m sure they provide support.

    Kind Regards,

    • This reply was modified 4 years, 8 months ago by Clayton R.
    Thread Starter daki22

    (@daki22)

    i turn off all cache plugins and this error is showing again

    Plugin Author Clayton R

    (@mrclayton)

    Use a private browser and test. If the error still shows then take a look at how your product page is loading.

    Are you using Ajax to load your product page perhaps?

    Thread Starter daki22

    (@daki22)

    Thread Starter daki22

    (@daki22)

    Ok, the problem was with Apple Pay, when I disable error is not showing again

    Plugin Author Clayton R

    (@mrclayton)

    product out of stock is not getting error

    That is because when a product is out of stock, the payment gateways aren’t loaded on the product page.

    Ok, the problem was with Apple Pay, when I disable error is not showing again

    The error goes away when you disable Apple Pay because js.stripe.com/v3 is a dependent script and if you don’t load Apple Pay you don’t load the dependency scripts.

    Thread Starter daki22

    (@daki22)

    Thanks 🙂 yes and website is faster

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘ReferenceError: Stripe is not defined’ is closed to new replies.