#Mint
1 messages · Page 1 of 1 (latest)
Hi there
Can you clarify what you mean by "default card" exactly?
You want to pre-fill the Payment Element?
Yeap. mate
Gotcha. Unfortunately that isn't supported. Payment Element currently only supports collecting new payment methods. If you want to show saved PaymentMethods then you would need to build your own UI for that
Oh Thank you very much
Sure thing
Oh . One more thing
can we able to get the payment method type by this element ?
like can i know which payment method type i'm selecting
Yep
You listen for the .on('change') event and it will be the value: https://stripe.com/docs/js/element/events/on_change?type=paymentElement#element_on_change-handler-value