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...
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.
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.'"
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.
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.
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).
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"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With