#Jogoldirus-cards
1 messages ยท Page 1 of 1 (latest)
hi! that API is deprecated
use https://stripe.com/docs/api/payment_methods/customer_list instead, it will return all the cards
Thanks, think about update it a day ๐
To delete a card, i need to delete the paymentMethod or with customers.deleteSource ?
Hey, taking over from @karmic lantern
You're using Payment Methods, which can't be deleted (for regulatory reasons). Instead, you'd just detach them from the associated customer and then they can't be re-used: https://stripe.com/docs/api/payment_methods/detach
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Okay, i was lost between deprecated API and PaymentMethod to get cardList so cardID wasn't fetch
Thanks ๐
Yeah, the Payment Methods API is like an umbrella object that wraps all types of payment options we support
So the PM object will have an underlying card_xxx object, but you should just ignore that and use the pm_xxx
Ok thanks, you can close the discussion ๐