#Adrian Moreno
1 messages · Page 1 of 1 (latest)
Hello! I think it's always going to open in Safari, as that's where the customer would be logged in with Klarna. A web view or Safari View Controller would be a worse experience for them as they'd have to log in to Klarna from scratch there.
My point is to be sure the user don't leave the app
So as soon as the user completes the payment the webview closes and then just continue in the same controller not having to add an specific returnURL
I'm not sure if it's possible or if the better user experience is to just use Safari and add the deeplink to go when the user completes the payment.
It would be a better experience for the customer to use Safari outside of your app so they can complete the payment with less friction. The return URL you specify should make it easy for them to return to your app after the Klarna part of the process is complete.
Let me check something though, it's been a while since I looked at Klarna on iOS...
Hm, according to the docs Klarna does use a webview: https://stripe.com/docs/payments/klarna/accept-a-payment?platform=mobile&ui=ios#ios-submit-payment
This presents a webview where the customer can complete the payment, which initiates a call to the completion block with the result of the payment.
But you're seeing them kicked out to Safari?
Yep
I'm moved always to safari by default
So I'm not sure if I could add it to a webview in my app instead
I wonder if we changed the behavior and forgot to update the docs... let me investigate, hang on.
Perfect, thank you, I'll wait then
What version of the Stripe iOS SDK are you using?
22.6.0
And this is Safari, not a Safari View Controller, correct?
That's the screen