#lil-nasty_best-practices

1 messages ยท Page 1 of 1 (latest)

pearl shaleBOT
limpid pawnBOT
#

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.

pearl shaleBOT
#

๐Ÿ‘‹ 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.

pallid anvil
#

Hello
Not sure I follow.. Are you trying to list existing payment method users have attached?

plush terrace
#

No moreso wondering how to take a given payment method object (no specific type) and convert it into a user recognizable string/display

pallid anvil
#

What's the usecase though?

plush terrace
#

Displaying a user's payment method to them

#

So they can see which payment method we charged or will charge in the future

pallid anvil
#

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)

plush terrace
#

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

pallid anvil
#

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

plush terrace
#

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

pallid anvil
#

Sounds good! Good luck ๐Ÿ™‚