#Sam-Stripe-pre-fill

1 messages · Page 1 of 1 (latest)

deep pawn
#

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.

boreal garden
#

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

deep pawn
boreal garden
#

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?

deep pawn
#

Correct, you build that UI yourself. So you retrieve the PaymentMethods on the backend and pass information about them to the frontend to display.

boreal garden
#

Are there any frontend examples of this?

sly basalt
#

Not for displaying card information specifically, no.

boreal garden
#

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

sly basalt
#

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