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

[BUG] Payment gets stuck when you switch between the apps and the stripe activity gets killed

Open dmytroKarataiev opened this issue 3 years ago • 4 comments

Summary

When you use a sample app Playground experience, select a payment method, close/open the app with don't keep activities on and then try to pay - the app would get stuck and you would need to close/open it again to be able to pay.

This also happens in our real app where we use the sdk.

Code to reproduce

https://github.com/stripe/stripe-android/tree/master/paymentsheet-example

Android version

Android 10 (SDK 29) pretty much any device, including emulators.

Impacted devices

All SDK 29 devices we have tested so far.

Installation method

N/A, it's reproducible in the sample app.

Dependency Versions

N/A, it's reproducible in the sample app.

Video

https://user-images.githubusercontent.com/14958724/145100284-fa15f3c9-0cac-4d6e-8859-90c9f940b3c3.mp4

dmytroKarataiev avatar Dec 07 '21 20:12 dmytroKarataiev

@dmytroKarataiev Thanks for your report. We will take a look.

michelleb-stripe avatar Dec 09 '21 13:12 michelleb-stripe

@dmytroKarataiev I have been able to confirm that this is an issue on API versions <= 29. It does appear to work though if the process is killed. I am continuing to look into the issue.

michelleb-stripe avatar Dec 15 '21 12:12 michelleb-stripe

Is there an update for this?

dmytroKarataiev avatar Jul 12 '22 14:07 dmytroKarataiev

@dmytroKarataiev

This will be fixed in the next release.

https://github.com/stripe/stripe-android/pull/5268

michelleb-stripe avatar Jul 25 '22 20:07 michelleb-stripe

Hi @dmytroKarataiev 👋 I’m closing this issue for now, but feel free to open another one if the issue persists for you.

tillh-stripe avatar Sep 14 '22 16:09 tillh-stripe