Title: ReferenceError: Stripe is not defined
Last modified: August 9, 2026

---

# ReferenceError: Stripe is not defined

 *  Resolved [rw788](https://wordpress.org/support/users/rw788/)
 * (@rw788)
 * [2 months ago](https://wordpress.org/support/topic/referenceerror-stripe-is-not-defined-12/)
 * Hi, sometimes when clicking on a buy now button, i get the error in a red box“
   ReferenceError: Stripe is not defined”
 * It’s intermittent, If i reload the webpage it’s all good, it only seem to happen
   on my windows pc, not my phone or tablet. Tried to upload some images, hopefully
   you can see them.
 * [https://www.pasteboard.co/TDfTFfD9R0vY.png](https://www.pasteboard.co/TDfTFfD9R0vY.png)
 * [https://www.pasteboard.co/dyiZ_Kwx_O0Q.png](https://www.pasteboard.co/dyiZ_Kwx_O0Q.png)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freferenceerror-stripe-is-not-defined-12%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [mbrsolution](https://wordpress.org/support/users/mbrsolution/)
 * (@mbrsolution)
 * [2 months ago](https://wordpress.org/support/topic/referenceerror-stripe-is-not-defined-12/#post-18988820)
 * Thank you for reaching out to us. Are you running any custom code in your site?
   Do you run a cache plugin in your site or does your server run any caching system?
 * Also just to be on the safe side, can you read the following documentation. I
   just want to make sure that your Stripe API is configured correctly.
 * [https://s-plugins.com/general-settings-configuration-of-stripe-payments-plugin/](https://s-plugins.com/general-settings-configuration-of-stripe-payments-plugin/)
 * Let me know if the above information helps you in any way.
 * Kind regards.
 *  Thread Starter [rw788](https://wordpress.org/support/users/rw788/)
 * (@rw788)
 * [2 months ago](https://wordpress.org/support/topic/referenceerror-stripe-is-not-defined-12/#post-18988997)
 * Thanks, no custom code but i run “Lightspeed Cache”, before that “WP Super Cache”.
 * Some sales are completed with the plugin, but I was using the site my self and
   notice this intermittent error message on my Windows PC, have not noticed it 
   on my android phone or tablet, that’s why i thought it might be a cookie problem.
 *  Thread Starter [rw788](https://wordpress.org/support/users/rw788/)
 * (@rw788)
 * [2 months ago](https://wordpress.org/support/topic/referenceerror-stripe-is-not-defined-12/#post-18989069)
 * I deactivated “Lightspeed Cache” but still getting error
 *  Plugin Contributor [Ruhul](https://wordpress.org/support/users/tips-and-tricks-hq/)
 * (@tips-and-tricks-hq)
 * [2 months ago](https://wordpress.org/support/topic/referenceerror-stripe-is-not-defined-12/#post-18989166)
 * Since the error is intermittent, it’s most likely caching or a conflict.
 * On caching: deactivating Lightspeed Cache isn’t enough on its own if the cached
   pages weren’t purged first, the old cached version can still be served until 
   it expires or is cleared. Please purge all cache (server-level too, if your host
   runs one) and also make sure the page with the payment button is excluded from
   any caching, as explained here:
 * [https://s-plugins.com/impact-of-caching-on-e-commerce-sites/](https://s-plugins.com/impact-of-caching-on-e-commerce-sites/)
 * If the error persists after a full cache purge, please run this conflict test
   next:
 * [https://s-plugins.com/forums/topic/test-for-plugin-and-theme-conflict-before-posting-an-issue-or-a-bug/](https://s-plugins.com/forums/topic/test-for-plugin-and-theme-conflict-before-posting-an-issue-or-a-bug/)

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Freferenceerror-stripe-is-not-defined-12%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/stripe-payments/assets/icon-128x128.png?rev=2705524)
 * [Accept Stripe Payments](https://wordpress.org/plugins/stripe-payments/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stripe-payments/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stripe-payments/)
 * [Active Topics](https://wordpress.org/support/plugin/stripe-payments/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stripe-payments/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stripe-payments/reviews/)

## Tags

 * [stripe plugin](https://wordpress.org/support/topic-tag/stripe-plugin/)

 * 6 replies
 * 3 participants
 * Last reply from: [Ruhul](https://wordpress.org/support/users/tips-and-tricks-hq/)
 * Last activity: [2 months ago](https://wordpress.org/support/topic/referenceerror-stripe-is-not-defined-12/#post-18989166)
 * Status: resolved