#kaustuva-le

1 messages · Page 1 of 1 (latest)

coarse lilyBOT
vernal grail
#

i.e. can our frontend listen for an event which would tell our frontend that the user has entered a specific type of card

#

While they're still entering the details

vast kestrel
#

The Payment Element does not, so you need to approach it differently

vernal grail
#

Is there a way to know the card type in the payment element? While they're still typing in the info?

vast kestrel
#

Not via an event no. You'd need to use the createPaymentMethod function to tokenise the card details input, then you can check the details on the Payment Method object as needed

vernal grail
#

So we can't know till the payment method has actually been created

#

?

vast kestrel
#

Correct