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

Add a contextual component for sharing elements between stripe-card-* elements #49

Closed
lindyhopchris opened this issue Jul 29, 2019 · 0 comments · Fixed by #64
Closed

Comments

@lindyhopchris
Copy link
Contributor

As shown in #14, to get the individual stripe-card-* elements working, you actually need them to be backed by the same stripe.elements() instance.

This is pretty confusing, as shown by some of the questions in #9

The way to solve it is to have a contextual component that does that wiring for you, example use:

{{#stripe-elements as |elements|}}
   {{elements.cardNumber}}
   {{elements.cardExpiry}}
{{/stripe-elements}}

Need to flesh it out, but something along those lines. Would also mean options could be passed using {{#stripe-elements options=options}} which would solve #33

I'll put together a PR when I'm next working on Stripe related stuff, probably this weekend. But posting here so if anyone has any thoughts/requirements they can comment below.

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

Successfully merging a pull request may close this issue.

1 participant