#mahendra
1 messages · Page 1 of 1 (latest)
Could you elaborate in which timing you want to check the card detail? ie. when you receive some webhook?
Basically when customer try to delete their card.
Umm have you tested in test mode? I think it wouldn't let you to call Delete API in such cases
Yes I check on test mode I schedule future with subscription 4242 4242 card and than remove it and it completely removed.
And what happens to the active Subscription setup by that card?
than on subscription day it throw
"requires_payment_method" error
Ummm okie sorry I agree we could handle this better
For now you can only maintain a list of Payment Methods used on each Subscription/SubscriptionSchedule and compare it when about to delete
I will forward your feedback internally
can i check before delete card if any subscription add to this card
is there any way?
It would be List Subscription and collect the used payment methods, but it is a bit expensive performance-wise
You may need a caching mechanism
can i get subscription by customer and than check payment method?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.