You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a race condition in PaymentSheetActivity.fetchConfig(). fetchConfig() is only called when the activity is created for the first time : link. The observation of viewModel.fetchFragmentConfig() triggers the transition to the next fragment : link.
It is possible for the activity to be recreated before getting a result from viewModel.fetchFragmentConfig(). In this case, transition to the next fragment doesn't happen and fetchConfig is not called during the onCreate() of the new fragment. This results in a PaymentSheet stuck in an infinite loading progress bar like #3744
Code to reproduce
As a race condition it may be hard to trigger. However, it happens consistently for me when calling PaymentSheet.presentWithPaymentIntent() from an activity in landscape. BaseSheetActivy requests a portrait orientation so PaymentSheetActivity is recreated.
Dependency Versions
stripe-android: 16.10.0
Gradle: 7.0
The text was updated successfully, but these errors were encountered:
Summary
There is a race condition in
PaymentSheetActivity.fetchConfig()
.fetchConfig()
is only called when the activity is created for the first time : link. The observation ofviewModel.fetchFragmentConfig()
triggers the transition to the next fragment : link.It is possible for the activity to be recreated before getting a result from
viewModel.fetchFragmentConfig()
. In this case, transition to the next fragment doesn't happen andfetchConfig
is not called during the onCreate() of the new fragment. This results in a PaymentSheet stuck in an infinite loading progress bar like #3744Code to reproduce
As a race condition it may be hard to trigger. However, it happens consistently for me when calling
PaymentSheet.presentWithPaymentIntent()
from an activity in landscape. BaseSheetActivy requests a portrait orientation so PaymentSheetActivity is recreated.Dependency Versions
stripe-android: 16.10.0
Gradle: 7.0
The text was updated successfully, but these errors were encountered: