Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Stripe not referenced in Vue app
Getting the following error when initializing the card element..
"'Stripe' is not defined"
I have even imported the script tag for the stripe CDN in the index.html of my vue app so that its definitely rendered first but still to no avail.
No matter where I put the line
"let stripe = Stripe(process.env.STRIPE_PUBLIC_KEY),"
whether it be in the mounted function or as you have it in the script section, it still isn’t referencing anything.