#xxxxx-payment-method-deletion
1 messages · Page 1 of 1 (latest)
using stripe.customers.create to add payment method.
Why as if one of my user wants to delete the added debit card .
@dense raptor I am confused why is it so
You can detach the Payment Method from the Customer: 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.
Which makes them unusable. They can't be deleted completely for regulation compliance
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Can you please explain me this
Note that for cards belonging to customers, you might want to prevent customers on paid subscriptions from deleting all cards on file, so that there is at least one default card for the next invoice payment attempt.
As i am finding it hard to understand.
What's hard to understand?
why should we don't delete the default card?
That endpoint is for card_ objects which are a legacy API and mostly deprecated
It's explained there in the message. To prevent any failed invoice payment attempts for recurring charges
But this is likely irrelevant as you're probably not using Card objects
yes we are using cards for payment.
that means we can do this but this is not recommended to delete your default card. Is this Right?
Right, but that doesn't mean you're using card_ objects. Most card payments are facilitated by Payment Method objects (pm_xxx) now
so that means i can delete the card from the source .
Can you share the ID of the object you want to delete?