stripe-android icon indicating copy to clipboard operation
stripe-android copied to clipboard

Add handler before removing a card into the PaymentMethodsActivityStarter

Open jose-t opened this issue 6 years ago • 2 comments

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 avatar Mar 24 '20 10:03 jose-t

@jose-t thanks for filing. @shengwei-stripe is this covered by your fix for #2459 ?

smaskell-stripe avatar May 20 '20 21:05 smaskell-stripe

@smaskell-stripe yes perfectly. Thank you!

jose-t avatar May 21 '20 05:05 jose-t