#lil-nasty_best-practices
1 messages ยท Page 1 of 1 (latest)
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- lil-nasty_best-practices, 13 minutes ago, 15 messages
- lil-nasty_best-practices, 23 hours ago, 44 messages
- lil-nasty_best-practices, 6 days ago, 47 messages
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1268690804268994641
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello
Not sure I follow.. Are you trying to list existing payment method users have attached?
No moreso wondering how to take a given payment method object (no specific type) and convert it into a user recognizable string/display
What's the usecase though?
Displaying a user's payment method to them
So they can see which payment method we charged or will charge in the future
I see. I think that's what I asked earlier ๐
Anyway, I've seen people handle it different ways.. Most common way is to show them the last 4 digits with the card network (visa, mastercard, etc)
Ah, yeah... misunderstood your first description
Cards are def the most common and I think prob easiest, but there's 70 other potential types...
We don't support all, but many
Anything you've seen that's a sort of catch-all?
We would prob manually handle card/bank account but others would need to be programmatic
Prob split by _ and uppercase first letter followed by "payment method" for everything other than card/bank
Hmm, don't think i've seen a catch-all solution, no..
An easier option would be to use Customer Portal and let Stripe handle this for ya
Depending on the UI you need though, PaymentElement also supports listing existing payment methods now: https://docs.stripe.com/payments/save-customer-payment-methods
So that's another option too
Ah, interesting! We've already got pretty much everything managed through our own dash, so the portal is prob off the table for us and the payment el listing methods is nice, but we also need to display in the context where a user is receiving an email or just seeing what's set on their subscription. No worries though. I think the solution I mentioned will do it
Sounds good! Good luck ๐