#mattmiller_best-practices
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/1280371696787783702
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
hello! can you share more on why you want to save the corresponding PaymentIntent or SetupIntent which created the PaymentMethod?
When I list all a customer's payment methods I want to show for each method whether it's been optimized for on_session, which means it was created using a PaymentIntent or off_session, which means a SetupIntent was used.
ah, so we don't have any APIs that do what you want. The only way really is to save that information into your own database and then query it
Well, what I'm thinking of is basically what I'm seeing in the dashboard when I pull up a customer and expand one of his payment methods. I see a "Set up for future use" field associated with the payment method, and the value of that is the payment intent ID or setup intent ID.
I guess I figured there would be a standard way to get that.
our Dashboard probably has it's own internal endpoint and/or does some stuff behind the scenes to link everything together. We don't have any public endpoint that does what you want unfortunately
Okay. Thanks. I'll think again if this is something I really need to show the customer, and, if I do, I'll store it on my side.