#rebecca-n_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/1377340804917366846
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi ๐ are you comparing what you see in the Stripe dashboard to what you see on the Customer object? I don't think those are expected to align if so, I'm pretty sure that's a case where there isn't alignment between the dashboard and our API.
The default payment method that can be specified on a Customer object is specifically for use with Stripe Billing integrations.
why wouldn't they align?
I'm not sure exactly, I'm just aware they don't always. My teammates and I focus on helping developers with our API, so we're less familiar with the dashboard sie of things.
so what do i need to do?
My suspicion is that the dashboard default is prefilled for whenever you're using the dashboard to process a payment for the customer, which isn't behavior that exists in the API, but I'm not confident on that first part.
What are you trying to accomplish?
we had a customer update their payment information via our api. But when we call back that customerId, that new card isn't in the response. But we do see it in the dashboard
If you want to see a Customer's Payment Methods, you'll want to use this endpoint to list those rather than retrieve the Customer object:
https://docs.stripe.com/api/payment_methods/customer_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Ah, because two of those are Source objects rather than Payment Methods.
This endpoint should work for retrieving the additional Card Sources:
https://docs.stripe.com/api/cards/list
Or you can find them on the Customer object in the sources hash:
https://docs.stripe.com/api/customers/object#customer_object-sources
but as of API version 2020-08-27, which it looks like you're using, that hash isn't included by default and you'll have to use expand in order to include it:
https://docs.stripe.com/api/expanding_objects
Any time! Let me know if that still doesn't give you what you're looking for