Stripe re-direct not closing the in app browser in flutter IOS #2143
Replies: 13 comments
-
I would recommend taking a look at: #462 in essence you need to make sure that you specify a return url and also enable the deeplink in flutter. |
Beta Was this translation helpful? Give feedback.
-
Yes, I understand that point, but if my deep link URL isn’t working, then how is the same code working on Android? |
Beta Was this translation helpful? Give feedback.
-
Android does not require a returnUrl to works. It's only for iOS |
Beta Was this translation helpful? Give feedback.
-
I verified that the deep link is working and the console logs appear in the terminal, but the dialog box isn’t automatically closing. It should pop the screen when the deep link is triggered or i have to write some code to close the stripe sheet. |
Beta Was this translation helpful? Give feedback.
-
I have exactly the same issue. The deep link is handled in the app after finishing the payment but the browser stays open. After pressing "Close" the browser closes and the page which was linked to before becomes visible. |
Beta Was this translation helpful? Give feedback.
-
So 2 things can be causing this:
The behavior of the screens is out of our jurisdiction since they are native rendered and we will not make changes to them because of PCI compliance. Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Yes, I added both as you mentioned above, and I also got the print in my deep link. However, the sheet is not closing automatically when I click the button. |
Beta Was this translation helpful? Give feedback.
-
@jonasbark do you see any other clues here? For me deeplinking works fine in the production apps and I cannot reproduce it |
Beta Was this translation helpful? Give feedback.
-
Any Update ?? |
Beta Was this translation helpful? Give feedback.
-
You can check with a 3d secure test card
Request:
|
Beta Was this translation helpful? Give feedback.
-
After two months, I fixed the problem : before in my ios/Runner/AppDelegate.swift
But now I added stripeHandled https://docs.stripe.com/payments/accept-a-payment?platform=ios#ios-set-up-return-url:
and its working like sharm. |
Beta Was this translation helpful? Give feedback.
-
this can be a solution as you override flutters deeplinking natively but this shouldn't be needed as flutter has a mechanism for deep linking |
Beta Was this translation helpful? Give feedback.
-
this looks like more a flutter issue rather than an issue on our library |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I'm testing out more payment methods for Stripe following. This was not working in my existing app which is using flutter_stripe: ^11.4.0 version the in app browser was never getting closed.
To Reproduce
Steps to reproduce the behavior:
Open react native app using Stripe
Open the payment sheet
Click on any one of the payment methods
The in-app browser will open, authorise the payment
In-app browser doesn't close
Expected behavior
In-app browser should close and return to the payment sheet with correct status
Smartphone (please complete the following information):
Device: iPhone 16 Pro
OS: iOS 18.2
Browser: stock browser, safari
Version: flutter_stripe: ^11.4.0
Additional context
If I manually close the in-app browser the Stripe payment displays the status correctly.
Beta Was this translation helpful? Give feedback.
All reactions