• Resolved gimmebbtjason

    (@gimmebbtjason)


    Hi Mr. Clayton,

    We suddenly started getting the error message “ReferenceError: Can’t find variable: Stripe” a couple weeks ago on our website.
    https://prnt.sc/1sek0d4
    It doesn’t seem to have affected the functionality of and payments on our website, but it pops up on Mobile only at the moment.

    I’ve double checked and ensured that the Stripe plugin and Woocommerce plugins are up to date.

    Can you please assist?

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @gimmebbtjason,

    This is most likely related to your cache plugin settings. If you’re using a cache plugin, make sure you add js.stripe.com to the exclusion list.

    Kind Regards,

    Thread Starter gimmebbtjason

    (@gimmebbtjason)

    Thanks for responding mate.
    I have 2 caching plugins installed (i should probably uninstall one).

    The first plugin is called WP-Optimize. I think I found the correct place to insert “js.stripe.com”:
    https://prnt.sc/1sjctdt

    The second plugin is called WP Super Cache. Can you confirm whether the below is the correct place to insert “js.stripe.com”?
    https://prnt.sc/1sjd034

    Appreciate your patience.

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @gimmebbtjason,

    That prnt.sc site never works. I recommend something like imgur for your screenshots.

    You want to make sure you add the Stripe script to the list of excluded scripts and also make sure it’s added to the Do Not defer loading section. Some of these caching plugins attempt to load external scripts dynamically which causes the script that’s dependent on the js.stripe.com/v3 script to execute first.

    Kind Regards,

    Thread Starter gimmebbtjason

    (@gimmebbtjason)

    Hi mate, apologies for the buggy links. Here is the Imgur link to both screenshots:

    View post on imgur.com

    Plugin Author Payment Plugins

    (@mrclayton)

    @gimmebbtjason

    You should consult the documentation for your caching plugin.

    It looks like adding js.stripe.com/* should work.

    Kind regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ReferenceError: Can’t find variable: Stripe’ is closed to new replies.