#szy_customer-pmmanagement
1 messages · Page 1 of 1 (latest)
đź‘‹ 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/1226953402710233288
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
@rancid bay just to confirm, you want to offer a UI in your website/app where a Customer can see their saved PaymentMethods and choose a new default one, or add a new one?
hello 🙂 exactly
szy_customer-pmmanagement
Okay so right now you have to
lol damn keyboard sorry, typing again
So right now you have to build your own UI where you can show them their list of saved PaymentMethods using the https://docs.stripe.com/api/payment_methods/customer_list API. You can mark the default based on the Customer's invoice_settings[default_payment_method] and build some UI to change the default to a new one (where your code calls the https://docs.stripe.com/api/customers/update to change that value)
And then you can have a button like "add new payment method" that then uses the SetupIntents API with the PaymentElement client-side to collect the details based on https://docs.stripe.com/payments/save-and-reuse
thank you, i'll try to digest it !
let me know if anything is unclear, happy to provide more details
Also copy-pasting a blurb we have about an ongoing beta:
Given what you’re working on, you might be interested in trying our “Saved payment method” beta feature. This beta allows Payment Element to get consent from customers to save a payment method, and redisplays them during future transactions. We’re currently recruiting developers to try this out and offering incentives for sharing feedback. If you’re interested, reach out to payment-element-beta@stripe.com to request access and more info.
I'm actually using the beta custom checkout for the custom checkout. i will send the email to enroll. thanks!
yeah those are definitely separate beta/features/products
so the saved payment method allow to just check the box like "save payment details" and this will be somehow saved?
No that is not what the feature I am talking about is for. It's to display a list of previously saved payment methods directly in PaymentElement, which is a product separate from Checkout