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

[BUG] iOS: authenticationPresentingViewController error when confirming payment sheet with 3DS #1749

Open
jetaix opened this issue Oct 9, 2024 · 1 comment

Comments

@jetaix
Copy link

jetaix commented Oct 9, 2024

Describe the bug
When attempting to confirmPaymentSheetPayment, I encounter the following error on iOS with a 3DS payment and on a modal presentation view

To Reproduce

  1. Open a modal presentation view
    • init payment
    • attempt to confirm the payment with confirmPaymentSheetPayment
    • -> the 3DS screen is not displayed and i get the following error:

authenticationPresentingViewController is already presenting. You should probably dismiss the presented view controller in prepareAuthenticationContextForPresentation

  • Works correctly with a classic payment (no 3DS)
  • Works correctly on Android
  • Works correctly on containedModal presentation view

Expected behavior
The 3DS screen should be displayed on top of the stack.

Smartphone:

  • Device: iPhone 15 Plus Simulator
  • OS: iOS 17.5

Additional context

  • Expo version: 51.0.34
  • @stripe/stripe-react-native version: 0.38.6
  • React Native version: 0.74.5
  • @react-navigation

The 3DS screen opening normaly in a modal view seems conflict with my current modal view

Did you note some issues with a "modal" presentation view and 3DS screen?

@jetaix jetaix changed the title [BUG] iOS: authenticationPresentingViewController error when confirming payment sheet payment (3DS) [BUG] iOS: authenticationPresentingViewController error when confirming payment sheet with 3DS Oct 10, 2024
@angelica-snowit
Copy link

I opened a bug on react native because the Modal behaviour changed a lot and was not addressed in changelog.
I think that Stripe problem with 3d secure depend on this: facebook/react-native#47694
I also opened a bug here to fix this: #1772

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

2 participants