Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe is not defined! #172

Open
rohit-13 opened this issue Nov 26, 2022 · 3 comments
Open

Stripe is not defined! #172

rohit-13 opened this issue Nov 26, 2022 · 3 comments

Comments

@rohit-13
Copy link

  • 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(''-----------);
@astas2286
Copy link

Hi! If it is still actual, put stripe = Stripe(''-----------) in try block

@masud-rana44
Copy link

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

@Felixmurithi
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants