#mike_api
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/1267492142515748924
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
I can see it in the Stripe dashboard but I don't know how to retrieve these details via API
We'll be with your shortly, thanks!
Hi, I was able to test this on my end and can confirm that the behavior you're seeing is expected. That payment method is not attached to the customer until after it is verified. For this reason, it won't return a result with that payment method when you use this endpoint, https://docs.stripe.com/api/payment_methods/customer_list.
As a workaround, you keep track of what payment method object belongs to that customer and retrieve the payment method, https://docs.stripe.com/api/payment_methods/retrieve.
In this case, you would use the pm_1PhuTZIkaYJTQiHGJOR4mnh3 ID to attain the data. Then, once the account is verified, you should be able to see the response here, https://docs.stripe.com/api/payment_methods/customer_list.
Got it! That makes perfect sense. Thank you for the explanation