#kaustuva-le
1 messages · Page 1 of 1 (latest)
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
Depends on which Element you're using. Card Element exposes that info via an change event: https://stripe.com/docs/js/element/events/on_change?type=cardElement#element_on_change-event
The Payment Element does not, so you need to approach it differently
Is there a way to know the card type in the payment element? While they're still typing in the info?
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
Correct