Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you permanently delete a payment method from Stripe?

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...

like image 374
swaggy Avatar asked Apr 26 '20 02:04

swaggy


People also ask

Can you delete a Stripe account?

Close a Stripe account : Stripe: Help & Support. The owner of a Stripe account can close the account by navigating to Settings > Account details in the Dashboard. On the Account details page, scroll to the bottom and click Close account.

Can a stripe payment method be attached to a customer again?

Furthermore, once detached it cannot be attached to any customer again thus serving the purpose of deletion. When attempting to re-attach Stripe will throw the following error "This PaymentMethod was previously used without being attached to a Customer or was detached from a Customer, and may not be used again.'"

How to delete a payment method from a customer?

I think the good way to do so is to detach the paymentMethod from a customer: const paymentMethod = await stripe.paymentMethods.detach ( 'pm_xxx' ); Like @Rasmus Christoffer Nielsen said in comments, " the payment method cannot be attached to any customer again thus serving the purpose of deletion" This seems to be the correct answer.

What happens if I Delete my Stripe account?

After you delete it, you will need to re-enter your payment information if you want to sign up for Link again. What is Stripe? Learn more about Stripe and our products. Get familiar with the Stripe products and their features. Explore complete reference documentation for the Stripe API.

What is next_action in stripe paymentintent?

The PaymentIntent object’s next_action parameter specifies the type of customer action. Redirect to their bank’s online service to authenticate and approve the payment. Verify ownership of their account by providing a one-time code that you post to the Stripe API (for example, microdeposits).


Video Answer


1 Answers

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"

like image 75
TOPKAT Avatar answered Oct 19 '22 16:10

TOPKAT