Wanted to delete all the cards (sources) from the stripe account.
Unable to find any API from documentation to delete the existing cards.
Wanted to delete all the cards (sources) from the stripe account.
Unable to find any API from documentation to delete the existing cards.
2
Answers
I already got a solution to use the below piece of code to delete all cards from the customer.
You can use the Stripe API to retrieve a list of all sources for the customer, and then loop through the list to delete each source using its unique identifier.