Add handler before removing a card into the PaymentMethodsActivityStarter
Summary
Hi,
I encounter a specific problem when I create a PaymentIntent via the Stripe API without confirming. My users can add and remove cards from the PaymentMethodsActivityStarter. They can also validate an order that trigger a new PaymentIntent. If the user removes a card attached to a PaymentIntent which is not confirmed, the PaymentIntent can never be confirmed.
The problem could be resolved if we have a handler when the user trying to remove a card in the PaymentMethodsActivityStarter. Then we could catch and cancel the removal if the card is already attached to a PaymentIntent.
@jose-t thanks for filing. @shengwei-stripe is this covered by your fix for #2459 ?
@smaskell-stripe yes perfectly. Thank you!