#mahendra

1 messages · Page 1 of 1 (latest)

wise orioleBOT
ebon nymph
#

Could you elaborate in which timing you want to check the card detail? ie. when you receive some webhook?

glossy dagger
#

Basically when customer try to delete their card.

ebon nymph
#

Umm have you tested in test mode? I think it wouldn't let you to call Delete API in such cases

glossy dagger
#

Yes I check on test mode I schedule future with subscription 4242 4242 card and than remove it and it completely removed.

ebon nymph
#

And what happens to the active Subscription setup by that card?

glossy dagger
#

than on subscription day it throw
"requires_payment_method" error

ebon nymph
#

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

glossy dagger
#

can i check before delete card if any subscription add to this card

#

is there any way?

ebon nymph
#

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

glossy dagger
#

can i get subscription by customer and than check payment method?

ebon nymph