Uncaught ReferenceError: Stripe is not defined - STRIPE ERROR
Might be late, but in case someone else have the same issue, just add the following in your
<HEAD></HEAD>
<script src="https://js.stripe.com/v2/"></script>
Knowing that they recommend migrating to v3 asap.
I suspect what's happening is that Stripe.js is loading AFTER your own javascript. Try moving Stripe.js above your own javascript in the header.
Stripe.js is now loaded after all other scripts, which means it isn't available immediately anymore. I have moved script from body tag to head tag.
<head>
<script src="https://js.stripe.com/v3/"></script>
</head>