#dcx86-objc
1 messages ยท Page 1 of 1 (latest)
@radiant trout there's an example at https://stripe.com/docs/payments/3d-secure#return-url (click the iOS tab and scroll down) for how to implement that in Objective-C.
as far as I know it goes into the .m file , if you're using Obj-C for some reason
Thanks @frozen star I'll do that.
One more question @frozen star , is the return url the same as /apple-app-site-association ?
How does a return url looks like?
also for what it's worth, just looking at your thread from yesterday
I expected that to see these card that the user add inside the stripe payment sheet.
I'd expect that too โ maybe you are not using an ephemeral key? that whole part is required it's how the Sheet is able to get and display that info.
it's anything you want as long as it uses the URL scheme your app is registered for, for example I use "com.karllekko-ios://stripe-redirect" in my app
Regarding the post from yestruday, I was using a development local server, after I switch to our staging server that has domain association I was able to get the desired behavior.
thanks. got it. I'll try now.
ah ok so you're using Universal links instead
I was never able to get those to work(like not a Stripe problem, it was just a pain to set up in Xcode/Apple Developer) I found the custom scheme easier, so I'm not 100% sure what value you're intended to pass for returnUrl hmm
though I'm fairly sure it's just like 'https://staging.lunch.co/stripe-redirect and then in theory that will get cause your continueUserActivity delegate to be called(which you can check by logging) since your app handles universal links for that domain, and then you call the SDK from there.
Okay, I'll see if I can figure it out otherwise I guess I'll setup url scheme
This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact
@radiant trout I've reopened your thread and am pasting your most recent message for context:
I'm following Stripe documentation to setup a return URL but after coming the code into my AppDelegate.m file I get an error from Xcode Use of undeclared identifier 'StripeAPI' . Am I missing an import or something of that sort?
Thanks @frank sequoia!
Please bear with me as my iOS dev skills are a bit rusty (and obj-c even moreso). Do you have an import Stripe line in that file?
you probably need import <Stripe/Stripe.h> in the AppDelegate.m. but not sure how/if this works with React Native, but I'd start with that.
I added a @import Stripe just as in the react native example app but that didn't seem to work.
#import <Stripe/Stripe.h> looks consistent with all other imports there.
I'm gonna try that now
Nope, that didn't work. Some error... ๐
So you have #import "AppDelegate.h" and @import Stripe; and are still getting that error?