#maxbash_code

1 messages · Page 1 of 1 (latest)

vivid canyonBOT
junior garnetBOT
#

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

vivid canyonBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1245008651048063095

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

short gate
tranquil phoenix
#

Hi there 👋 threads are closed if they sit idle. Can you help me understand what you're refrring to?

short gate
#

So there are two issues: the scrolling of the selection menu and the setting of the returnUrl, where let stripeHandled = StripeAPI.handleURLCallback(with: url) is always false.

tranquil phoenix
#

Sorry, the server is incredibly busy at the moment, what are the two issues? Can you summarize them for me?

vivid canyonBOT
junior garnetBOT
short gate
#

This is one:

Code
configuration.returnURL = "bashappbeta://" + "stripe-redirect"

.onOpenURL { url in
let stripeHandled = StripeAPI.handleURLCallback(with: url)
if (stripeHandled) {
return
}
// Other code to handle deeplink
}

Question
When I set the returnUrl in my SwiftUI app and I finish an iDEAL transaction, onOpenUrl gets called with this url: "bashappbeta://stripe-redirect?payment_intent=pi_3PLNhhI6FPXZGnXb1U3Az0hd&payment_intent_client_secret=pi_3PLNhhI6FPXZGnXb1U3Az0hd_secret_•••xNCM&redirect_status=succeeded", but stripeHandled is false. This also results in the in-app browser not closing.

What have you already attempted?
I tried using a custom scheme like in the code above and a universal link.

What are you working on?
In-app event tickets.

#

This is the other. Both are shown in the video.

What did you expect to happen?
Smooth iDEAL and country selection view

What actually happened?
Selection view swiping away when trying to select

Reproduction Steps
Everything is detailed in this github issue. https://github.com/stripe/stripe-ios/issues/3607

Question
I would really appreciate some fast support, since we have launched our production app already and this flow is far from ideal.

What are you working on?
In-app event tickets.

rancid cloak
#

Hello! I'm taking over and catching up...

#

If StripeAPI.handleURLCallback is returning NO that means the URL passed in was unexpected or malformed in some way. Can you log the url just before you call that and make sure it's the URL you expect?

#

The scrolling issue I've never seen before, and I can't find anything internal about it. I'm looking at the code you share in the GitHub issue, but a lot of your view code is missing. Can you add more context and details to that GitHub issue?

#

Adding the video to the GitHub issue would also be helpful.

short gate
#

I already logged the url and included it above. Also the video is already in the github issue.

rancid cloak
#

Oh, it's that Google Drive link at the top?

short gate
#

Yes

#

I believe it has something to do with the way uitkit handles views/scenes vs swiftui.

rancid cloak
#

I asked about logging the url because the code you shared doesn't have any logging code, and I wanted to make sure you were getting it at that moment in time. If that's the actual URL at that moment I'm not sure why the SDK isn't handling it. In every case I've seen where the URL isn't being handled it's because the URL is malformed in some way.

short gate
#

Ah yeah I printed it after a breakpoint, that's why

#

So I've tried the example project, none of these issue arise, but when I copy the examples in my SwiftUI app they happen the same. That's why I was wondering if there is a pure SwiftUI example as well (not using hosting controllers in a UIkit app)

#

Since this is the only thing I can think of that would result in these weird behaviours

rancid cloak
#

Yeah, it must be some kind of unexpected interaction between the containing view, or the containing view's containing view, or something like that. I've been looking around and haven't been able to find anything yet.