complete-node-bootcamp
complete-node-bootcamp copied to clipboard
Stripe is not defined!
- bundle.js:6895 Uncaught ReferenceError: stripe is not defined
Payment session is working in the backend, but int the stripe.js file; but gives the error while callling Stripe function to create the session.
- stripe.js file
- import { showAlert } from './alert';
- stripe = Stripe(''-----------);
Hi! If it is still actual, put stripe = Stripe(''-----------) in try block
Hi! You should need to move the "script(src='https://js.stripe.com/v3/')" script from tour.pug to base.pug, hopefully this will solve the issue
Hi! You should need to move the "script(src='https://js.stripe.com/v3/')" script from tour.pug to base.pug, hopefully this will solve the issue
Worked, Can u explain what is causing the error, why is the stripe moduule not included, while others like Mapbox are, regards