stripe-react-native
stripe-react-native copied to clipboard
The payment sheet does not close when timeout if user lock and unlock the mobile devices
Describe the bug I have added a timeout value for presentPaymentSheet({ timeout: 900s });. When a user opens the payment sheet, locks the screen, and waits for a period exceeding the timeout value, then unlocks the screen, the payment sheet is still available, and the user can proceed with the payment. This behavior violates our business rule. The timeout works correctly when the app is running in the background, but I'm unsure why there's a difference in behavior when the screen is locked. Im using "@stripe/stripe-react-native": "0.37.2" To Reproduce Steps to reproduce the behavior:
- Set timeout for presentPaymentSheet({ timeout: 900s });
- Open payment sheet
- Lock the screen
- Waiting for after timeout
- Unlock the screen
- The payment sheet still not closed
Expected behavior The payment sheet should be closed after timeout when use lock the screen
Smartphone (please complete the following information):
- Device: Iphone, Android
- OS: IOS, Android