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

Crating element for the cardNumber, cardExpiry and cardCvc #180

Open
fakeomerson opened this issue Mar 18, 2021 · 2 comments
Open

Crating element for the cardNumber, cardExpiry and cardCvc #180

fakeomerson opened this issue Mar 18, 2021 · 2 comments

Comments

@fakeomerson
Copy link

I am trying to create a payment form of individual inputs not the one element for the whole card, like

var elements = stripe.elements();
var cardNumberElement = elements.create('cardNumber');
var cardExpiryElement = elements.create('cardExpiry');
var cardCvcElement = elements.create('cardCvc');

but instead it always creates card element, instead of cardNumber it creates a card element and cardExpiry and cardCvc, are skipped.

Can you please answer me if it is possible to have stripe elements other than card element?

@H--o-l
Copy link
Collaborator

H--o-l commented Mar 22, 2021

Hi @fakeomerson !

You can look inside the code to see what's what.
In your case, I think the relevant code is around here

create: function(type, options) {

Localstripe implements only what contributors have contributed. Don't hesitate to open a PR if you need something that doesn't exist yet!

@AlexDaniel
Copy link

For what it is worth, I also need this, but not sure if I'll get to making a PR this time.

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

3 participants