#Akshay-payment_element
1 messages · Page 1 of 1 (latest)
hello! the onChange event will reflect that : https://stripe.com/docs/js/element/events/on_change?type=paymentElement
Will i also be getting card details if i use this?
can you elaborate more on what card details specifically? Do you have any concerns?
you won't get any card details. You can see the list of parameters for the event here : https://stripe.com/docs/js/element/events/on_change?type=paymentElement#element_on_change-handler
Its like i want to know the payment method choosen , and if the user chooses card as payment method , i would like to know the last 4 number of the card bfore the confirmPayment function is called
why do you want to know the last4 before the confirmPayment is called?
We are having a cart object and need to link the payment method and last 4 no of the card to that object