6
votes

Is it possible to delete a payment method from Stripe? I can't seem to find that functionality described anywhere in the docs. You can create a payment method, attach it to a customer, and detach it from that customer, but how do you delete the payment method from Stripe's system entirely?

If you can't, then that means once you send your credit card info to Stripe, you can't ever take it back...

2
You should write into support about that: support.stripe.com/contact - Paul Asjes

2 Answers

9
votes

I think the good way to do so is to detach the paymentMethod from a customer:

const paymentMethod = await stripe.paymentMethods.detach(
  'pm_xxx'
);

Api reference

Like @Rasmus Christoffer Nielsen said in comments, "the payment method cannot be attached to any customer again thus serving the purpose of deletion"

-2
votes

Stripe provides a way to delete card payment method for the customer.

Stripe Docs: https://stripe.com/docs/api/cards/delete

const deleted = await stripe.customers.deleteSource(
  'cus_id',
  'card_id'
);