#mahraamir
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- mahraamir, 6 days ago, 3 messages
cus_P0iAZKX0nkdCRA
hi! do you have more context like exact code you're using/API calls you're making, what data you expect to see in what JSON field and what you see instead?
one sec
Stripe\Collection JSON: {
"object": "list",
"data": [],
"has_more": false,
"url": "/v1/customers/cus_P0iAZKX0nkdCRA/sources"
}
That's the wrong API, it's legacy.
for credit card it is working
you use https://stripe.com/docs/api/payment_methods/customer_list to list a customer's payment methods.
it only works for legacy Card card_xxx and src_xxx objects.
you need to use the /v1/payment_methods API.
yes
by the way in my editor this method is not being listed like other methods
when I write ::
\Stripe\Customer::allPaymentMethods
then you're probably using an old version of the stripe-php library that doesn't have that method.