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
Similar to #5844 (I could not reopened), if user presses back button in the middle of processing, the PaymentSheetActivity may finish before processing complete and the result intent will not be set. PaymentSheetContract.parseResult() will then set a PaymentSheetResult.Failed while backend will get a confirmed payment.
stripe-android: 20.18.0
SDK classes
PaymentSheet, PaymentSheetActivity
Other information
I think the fix from #5848 has been lost with #6012.
From what I understand, BaseSheetActivity.onBackPressedCallback is only enabled when the viewmodel is not processing. So when you click the buy button, the translucent PaymentLauncherConfirmationActivity is launched and handle onBackPressed while confirming payment.
I think there is a small window after PaymentLauncherConfirmationActivity is destroyed, where BaseSheetActivity receives onBackPressed event and the onBackPressedCallback is not enabled.
The text was updated successfully, but these errors were encountered:
Summary
Similar to #5844 (I could not reopened), if user presses back button in the middle of processing, the
PaymentSheetActivity
may finish before processing complete and the result intent will not be set.PaymentSheetContract.parseResult()
will then set aPaymentSheetResult.Failed
while backend will get a confirmed payment.stripe-android: 20.18.0
SDK classes
PaymentSheet, PaymentSheetActivity
Other information
I think the fix from #5848 has been lost with #6012.
From what I understand, BaseSheetActivity.onBackPressedCallback is only enabled when the viewmodel is not processing. So when you click the buy button, the translucent
PaymentLauncherConfirmationActivity
is launched and handle onBackPressed while confirming payment.I think there is a small window after
PaymentLauncherConfirmationActivity
is destroyed, whereBaseSheetActivity
receivesonBackPressed
event and theonBackPressedCallback
is not enabled.The text was updated successfully, but these errors were encountered: