#Sam-Stripe-pre-fill
1 messages · Page 1 of 1 (latest)
Hi there! I think there is a misunderstanding of that flow. It allows you to collect payment method details and then charge that payment method later. But the Element itself won't be prefilled with the card details.
Is there any way to prefill the element with card details, or to save the details so the customer doesnt have to fill them out
The flow you are using above saves the card details but then you would create a separate UI on your site to display these saved cards. Then, when your customer selects one of those saved cards to charge you would charge it as we show here: https://stripe.com/docs/payments/save-during-payment?platform=web#charge-saved-payment-method without using the Element itself.
I have followed the backend portion of this flow. I am retrieving the payment ID token and sending it to stripe in the frontend. How do I now show the saved cards?
Or basically, how do I show the saved cards? Is that nothing to do with stripe and we just need to create that element ourselves?
Correct, you build that UI yourself. So you retrieve the PaymentMethods on the backend and pass information about them to the frontend to display.
Are there any frontend examples of this?
Not for displaying card information specifically, no.
The payment element forms are generated by stripe so for some reason I thought that stripe would generate us some card icons to select the card used with
The official logos are linked out in this article: https://support.stripe.com/questions/where-to-find-logos-for-accepted-credit-card-types
Stripe doesn't have a product for displaying those cards via a custom form unfortunately
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.