#anubhavshakya
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
no we don't
So what will be best way to remove expired card ???
please read the docs I sent you above
unless really necessary you shouldn't worry about expired cards since Stripe will try to update the payment details with the help of card networks
So stripe will automatically remove expired card from stripe... https://stripe.com/docs/saving-cards#automatic-card-updates
but in my stripe account I have one expired card of a customer....
So stripe will automatically remove expired card from stripe
no it won't, it will attempt to update them when they get reused
No...In my case when user come to our app... when we show them the list of available card by fetching from stripe... in that list expired card also available..
So how can I remove expired card from customer object ??
you can detach the payment method from the customer object like so 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.
ok
Currently my account in test mode... so It might be the case that stripe does not update the expired card in test mode but it will update in live mode ???
I need confirmation from stripe
Are you sure ??
it's in the docs
Ok.... I think whatever in the docs describe about update card... is for live_mode
Thanks for the help....
let me know if you need any more help
No...