Support » Plugin: Payment Plugins for Stripe WooCommerce » ReferenceError: Stripe is not defined

  • Resolved pomegranates

    (@pomagaj)


    Hello,

    Errors like below are sometimes showing up on my cart page. Any idea what is the cause of such errors? I would be very grateful for any advice!

    ReferenceError: Stripe is not defined
        <anonymous> /wp-content/plugins/woo-stripe-payment/assets/js/frontend/wc-stripe.min.js?ver=3.3.6:1
        <anonymous> /wp-content/plugins/woo-stripe-payment/assets/js/frontend/wc-stripe.min.js?ver=3.3.6:1
    wc-stripe.min.js:1:45086
    Uncaught TypeError: a is undefined
        <anonymous> /wp-content/plugins/woo-stripe-payment/assets/js/frontend/applepay-cart.min.js?ver=3.3.6:1
        <anonymous>/wp-content/plugins/woo-stripe-payment/assets/js/frontend/applepay-cart.min.js?ver=3.3.6:1
    applepay-cart.min.js:1:86

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

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

    (@mrclayton)

    Hi @pomagaj

    If you’re using a caching plugin then that’s the cause. You need to add the js.stripe.com script to the list of excluded scripts.

    Kind regards

    Thread Starter pomegranates

    (@pomagaj)

    I’m not using any caching plugin at the moment. 🙁

    Thread Starter pomegranates

    (@pomagaj)

    OK, it seems the problem was pretty specific and theme related. Thanks!

    Hi,

    I`m having this issue when I click on checkout on my website :(ReferenceError: Stripe is not defined) and Gpay is not even showing on my website either despite the fact that i already integrated this ages ago.

    Could anyone please talk me through the steps to rectify this issue?

    Thanks

    Plugin Author Payment Plugins

    (@mrclayton)

    Hi @bayish,

    If you’re using a caching plugin like WPRocket, you need to add js.stripe.com to the list of excluded scripts for minification, delayed loading, and async.

    Kind Regards,

    Hi @mrclayton,

    Thanks for your reply but i tried the steps as i`m using WP rockets and the error still persists.

    I have deactivated stripe and only using paypal at the moment but still need urgent solution to this.. any further help/assistance would be appreciated by you or anyone else.

    Thanks and kind regards.

    • This reply was modified 2 weeks, 1 day ago by bayish.
    Plugin Author Payment Plugins

    (@mrclayton)

    Thanks for your reply but i tried the steps as i`m using WP rockets and the error still persists.

    If you use the forum search feature you will find a ton of similar threads and the culprit is always WPRocket. Make sure you entered the script correctly in all three of the settings that I mentioned in the previous reply.

    I am positive that is the issue here. It is not because of a bug in the plugin.

    Kind Regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.