#r22_error

1 messages ยท Page 1 of 1 (latest)

ruby topazBOT
#

๐Ÿ‘‹ 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/1379193393824923789

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

fossil torrent
shrewd sluice
#

Still looking in to this. I didn't need any special setup for my iOS Simulator to be able to get this to work. If it is already getting your ephemeral key and such from your server it sounds like the device can make networked calls successfull so I am not immediately sure of what this may be.

fossil torrent
#

Thank you! appreciate this. I'll give this a try. I'm a newbie dev and have been stuck on this for 3 days but if there is anymore info I can provide, please let me know!

shrewd sluice
#

As far as you are aware is this issue iOS specific? Like does this same RN code work with your Android simulator? I am trying to see what networked calls our SDK makes when presentPaymentSheet is called that might be timing out here

fossil torrent
#

I'm not too sure, I've only been developing the app for ios at the moment so haven't tested android

shrewd sluice
#

Gotcha, I am having trouble with my example app at the moment. Still looking in to this and will get back with what I can find

ruby topazBOT
fossil torrent
#

I am also having issues with the example app build

shrewd sluice
#

Gotcha, if you open the RN dev tools (Cmd โŒ˜ + D) and try to present the payment sheet again, do you see a specific error emitted in the console? I am still having trouble getting my setup to run at all today, not sure what may have messed my env up.

fossil torrent
#

I don't get any error messages until it times out

#

Just waiting for it to timeout so I can share the message

warm vector
#

Give me a few minutes, I'm taking over and getting some help from teammtes who are more familiar with ReactNative

fossil torrent
#

No worries, thank you!

smoky dune
fossil torrent
smoky dune
#

Could you also share which version of stripe-react-native you're using?

fossil torrent
#

0.47.1

smoky dune
#

Thanks for sharing! Checking it now

smoky dune
#

Your code looks fine to me. From the your server log and code, it looks like the presentPaymentSheet() hasn't been hit to Stripe. The issue is likely due to network issue in the simulator. If you change to a different network, will that work?

fossil torrent
#

Cursor + stackoverflow suggested this but I can still use the browser in the simulator, so not sure if that is the issue?

#

LOG ๐Ÿ” SignUp: merchantDisplayName: Parenting App
LOG ๐Ÿ” SignUp: ---- END PARAMS ----
LOG ๐Ÿ” SignUp: Initialising PaymentSheet...
LOG โœ… SignUp: initPaymentSheet SUCCEEDED.
LOG ๐Ÿ” SignUp: Pinging Stripe API (api.stripe.com/v1) before presenting sheet...
LOG โœ… SignUp: Stripe API ping status: 404

#

Also I'm able to ping the stripe api

smoky dune
#

use the browser in the simulator
Are you integrating with Stripe in web or app? Browser usually refers to web development

fossil torrent
#

In app but I thought that would suggest it's not a network error?

#

I tried my mobile hotspot and still the same issue

smoky dune
fossil torrent
#

I was in the middle of trying this but was getting errors, I'll try again!

smoky dune
#

I'm trying to narrow down whether this is a simulator or code specific issue. If you're unable to run the example app, the issue is likely due to the simulator itself that Stripe has no control with.

ruby topazBOT
fossil torrent
#

I'm getting build errors with the example still, going to try one more way

#
  • Ran yarn bootstrap (completed, including pod install).
  • Copied example/.env.example to example/.env and filled in my Stripe API keys.
  • Started yarn example start:server (Terminal 1) - running successfully on port 4242.
  • Started yarn example start (Terminal 2) - Metro bundler running successfully on port 8081.
  • When running yarn example ios (Terminal 3), the build fails with xcodebuild exited with error code 65.
  • Logs show multiple Swift compilation errors within Pods like StripePayments, React-RCTAppDelegate, React-RCTFabric.
  • Troubleshooting Tried for Example App Build Failure:
  • Cleaned Xcode build folder (Shift+Cmd+K).
  • Deleted ~/Library/Developer/Xcode/DerivedData.
  • Ran pod cache clean --all.
  • In example/ios/, ran rm -rf Pods Podfile.lock then pod install --repo-update (also tried with arch -x86_64 pod install --repo-update). pod install itself completes without error.
  • The build still fails with the same error 65 and Swift compilation issues in Pods when running yarn example ios again.

Here is the summary of the steps fyi, trying it in xcode directly

#

Yeah I'm getting build errors, I'm quite stuck now

#

Okay let me try one more thing

half dust
#

ok cool! fyi i'm taking over for river - let me know when you want us to take another look

fossil torrent
#

Are you sure that I don't need an apple developer account to run the example?

#

Signing for "ReactTestApp" requires a development team.
Select a development team in the Signing & Capabilities editor.

I'm getting this

#

Now I see this

half dust
#

i think a developer account is only necessary if you're using apple pay - i can't remember if the example app does. 1 sec

fossil torrent
#

I removed apple pay but now see this

#

Okay I've fixed this now trying again

#

I'm getting closer with the example app but it's getting late and I have work tomorrow, is it okay if I come back to you tomorrow evening?

half dust
#

yeah for sure! the thread will be closed but if you start a new one we'll automatically link this one so the next person who helps you can reference it

fossil torrent
#

Ah okay I seemed to have got it to work

#

For the example, I can now see the payment sheet

#

If I dismiss the error and fill it out I get a success message

half dust
#

weird - maybe presentPaymentSheet is being called twice somehow?

#

that's good that you've got it running though

fossil torrent
#

I'm wondering if I go back to my app then, that it's because I haven't connected my apple account?

#

Or do you think it's the simulator issue?

fossil torrent
fossil torrent
half dust
#

have you tried connecting your apple account to see if that resolves it?

fossil torrent
#

I'm going to try this tomorrow evening, thank you for the support today. If I start a new thread, you said this will be auto linked?

half dust
#

yep! if for some reason it doesn't show the linkage automatically when you start the new thread you can always just copy the thread URL. just in case you don't know how to grab that i'll share it here: