#Adrian Moreno

1 messages · Page 1 of 1 (latest)

lofty bluffBOT
true comet
#

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.

onyx cosmos
#

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.

true comet
#

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...

#

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?

onyx cosmos
#

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

true comet
#

I wonder if we changed the behavior and forgot to update the docs... let me investigate, hang on.

onyx cosmos
#

Perfect, thank you, I'll wait then

true comet
#

What version of the Stripe iOS SDK are you using?

onyx cosmos
#

22.6.0

true comet
#

And this is Safari, not a Safari View Controller, correct?

onyx cosmos
#

That's the screen

true comet
#

Oh, yeah, that's a Safari View Controller, not Safari itself. That's still inside your app. If you swipe up to see the app switcher you should see that's your app, not Safari.

#

So that seems like expected behavior to me based on the docs and code I'm looking at.

onyx cosmos
#

Okey, that's good so I'm not out of my app, just on a SVC

#

Then I'll just stick to that and make it this way. Thank you so much, I'm learning a lot

#

You can close this thread