Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The payment sheet does not close when timeout if user lock and unlock the mobile devices #1712

Open
hongduclam opened this issue Aug 14, 2024 · 0 comments

Comments

@hongduclam
Copy link

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:

  1. Set timeout for presentPaymentSheet({ timeout: 900s });
  2. Open payment sheet
  3. Lock the screen
  4. Waiting for after timeout
  5. Unlock the screen
  6. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant