#talker
1 messages · Page 1 of 1 (latest)
hi! what's the customer ID and what exact code are you using?
but the short answer is that you need to use a different endpoint, /v1/payment_methods. https://stripe.com/docs/api/payment_methods/list
this is c#
var stripeCustomer = await _stripeCustomerService.GetCustomerByAffiliateIdAsync(affiliateId);
var service = new CardService();
var options = new CardListOptions
{
Limit = 1,
};
var stripeCards = await service.ListAsync(stripeCustomer.Id, options, _requestOptions);
return stripeCards.ToList();
customerID: cus_MTs1fmT5IP7WF7
yep, that customer has PaymentMethods pm_xxx, so you need to use PaymentMethodService to list their cards and other methods