#Gio
1 messages · Page 1 of 1 (latest)
Customer id: cus_NQyrjCauCzzAe6
Note that this https://stripe.com/docs/api/payment_methods/list mention this:
. If you want to list the PaymentMethods attached to a Customer for payments, you should use the List a Customer’s PaymentMethods API instead.
So this is the endpoint you should use: https://stripe.com/docs/api/payment_methods/customer_list
Yes, this works. My question is why https://stripe.com/docs/api/cards/list does not return my card. I was looking for a way to just list the cards of the customer (so no other payment methods).
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
My question is why https://stripe.com/docs/api/cards/list does not return my card.
This is explained in the doc:
Returns a list of PaymentMethods** for Treasury flows**. If you want to list the PaymentMethods attached to a Customer for payments, you should use the List a Customer’s PaymentMethods API instead.
If you only want to list the cards, then use https://stripe.com/docs/api/payment_methods/customer_list and set type:card