Title: ReferenceError: Can&#8217;t find variable: Stripe
Last modified: September 16, 2021

---

# ReferenceError: Can’t find variable: Stripe

 *  Resolved [gimmebbtjason](https://wordpress.org/support/users/gimmebbtjason/)
 * (@gimmebbtjason)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-stripe/)
 * 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](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freferenceerror-cant-find-variable-stripe%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-stripe/#post-14879238)
 * Hi [@gimmebbtjason](https://wordpress.org/support/users/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](https://wordpress.org/support/users/gimmebbtjason/)
 * (@gimmebbtjason)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-stripe/#post-14881156)
 * 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](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](https://prnt.sc/1sjd034)
 * Appreciate your patience.
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-stripe/#post-14882895)
 * Hi [@gimmebbtjason](https://wordpress.org/support/users/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](https://wordpress.org/support/users/gimmebbtjason/)
 * (@gimmebbtjason)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-stripe/#post-14895779)
 * Hi mate, apologies for the buggy links. Here is the Imgur link to both screenshots:
 * > [View post on imgur.com](https://imgur.com/a/azbamLX)
 *  Plugin Author [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * (@mrclayton)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-stripe/#post-14895817)
 * [@gimmebbtjason](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/woo-stripe-payment/assets/icon-256x256.png?rev=2611337)
 * [Payment Plugins for Stripe WooCommerce](https://wordpress.org/plugins/woo-stripe-payment/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-stripe-payment/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-stripe-payment/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-stripe-payment/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-stripe-payment/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-stripe-payment/reviews/)

## Tags

 * [ReferenceError](https://wordpress.org/support/topic-tag/referenceerror/)

 * 5 replies
 * 2 participants
 * Last reply from: [Clayton R](https://wordpress.org/support/users/mrclayton/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/referenceerror-cant-find-variable-stripe/#post-14895817)
 * Status: resolved