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

Error: You must provide a Stripe Element or a valid token type to create a Token. #97

Open
timsayshey opened this issue Aug 30, 2022 · 3 comments

Comments

@timsayshey
Copy link

My Vue app is a web component with a shadow dom and I'm using the stripe-elements component but after entering the credit card into the form, I grab the stripe-elements element and I try to run stripe.createToken() and I get the following error:

Here's my app: https://app.ecardwidget.com/widget/5150

image

@bennypowers
Copy link
Owner

Kinda hard to debug this based on just a screenshot, I'm going to need more information. Did you provide a publishable key? How? Can you verify that the element has that key before calling create token?

@timsayshey
Copy link
Author

Yes, I provided it, just like in the Vue example you provided. Yes, I verified it.

Does this help?

image

@bennypowers
Copy link
Owner

Could you provide a minimal reproduction on codepen or stackblitz or glitch or whatever? Don't add your pk I'll bring my own

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

2 participants