#AlexElba
1 messages · Page 1 of 1 (latest)
hello! to clarify, you want to have separate fields for month and year using the card element?
yup
current UI has them as two fields
I tried stripeElements.create('cardExpiry', {'placeholder': 'MM', ...
doing once per month one per year got error saying I can only have one
we don't support that at all and there's no way to do that
is there any way to set card cardExpiry manually using javascript
one way I was thinking to bind to invisible element
and js update on on change that field value
you won't be able to access the data in the cardExpiry element via JS - this is so that it's PCI compliant
so I can not set it using js?
cardExpiry.update({value: '12 / 25'});
I thought I can do something like this
other question I have for the card name, how would I separate it out
https://stripe.com/docs/js/element/other_methods/update?type=cardExpiry - there's no such parameter. Where did you see that you can update the value?
do you mean cardholder name?
there's no value parameter in the link you've provided
cardholder name is something that you're collecting via your own input field. I'm not too sure what you mean by separate it out
I mean customer I currently have has John Smith, but card they put is using Amanda Smith
if I create customer with John Smith but he is using his mom card
how would I pass card name
which is different than customer name
you can pass it into the billing details when confirming the payment or setup e.g. https://stripe.com/docs/js/payment_intents/confirm_card_payment