#dcx86-objc

1 messages ยท Page 1 of 1 (latest)

frozen star
#

as far as I know it goes into the .m file , if you're using Obj-C for some reason

radiant trout
#

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?

frozen star
#

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.

frozen star
radiant trout
#

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.

radiant trout
frozen star
#

ah ok so you're using Universal links instead

radiant trout
#

Yes.

#

apple recommends them over url scheme

frozen star
#

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.

radiant trout
#

Okay, I'll see if I can figure it out otherwise I guess I'll setup url scheme

analog roverBOT
frank sequoia
#

@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?

radiant trout
#

Thanks @frank sequoia!

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?

frozen star
#

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.

radiant trout
#

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... ๐Ÿ˜ž

gentle raft
#

So you have #import "AppDelegate.h" and @import Stripe; and are still getting that error?