#WhySoAsync-element
1 messages · Page 1 of 1 (latest)
with images and stuff
Hi! You mean you already have a saved card PaymentMethod, and you would like to display it nicely on your frontend?
yeah, i have
brand: "visa"
country: "US"
exp_month: 4
exp_year: 2024
last4: "4242"
with the stripe card example
I don't know the enums for all the brands so i can add pictures, i work in ReactJS
Got it! Then unfortunately there's no Element to displayed saved cards. That's something that you will have to build yourself.
i see stripe has something on android
Do you atleast have the enum for all the brands? So i can search for images?
There is some information provided here: https://support.stripe.com/questions/where-to-find-logos-for-accepted-credit-card-types
And you can find all Stripe supported brands here: https://stripe.com/docs/payments/cards/supported-card-brands
thank you !
And how the string comes in the payment_methods object for each one of them?
visa
mastercard
and the rest?
I'm trying to create a hashmap to show the logos
i will show images based on what comes from stripe brand key
This info is listed here: https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-brand
Card brand. Can be amex, diners, discover, jcb, mastercard, unionpay, visa, or unknown.