#r22_error
1 messages ยท Page 1 of 1 (latest)
๐ 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.
Hi, not sure if this helps, but here is the full error message.
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.
While I am looking, can you try running the payment sheet demo from our RN github to see if you get the same error? https://github.com/stripe/stripe-react-native/blob/master/CONTRIBUTING.md#development-workflow
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!
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
I'm not too sure, I've only been developing the app for ios at the moment so haven't tested android
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
I am also having issues with the example app build
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.
I don't get any error messages until it times out
Just waiting for it to timeout so I can share the message
does this help?
Give me a few minutes, I'm taking over and getting some help from teammtes who are more familiar with ReactNative
No worries, thank you!
https://stackoverflow.com/questions/26972822/error-error-domain-nsurlerrordomain-code-1001-the-request-timed-out > Error code 1001 often due to network connectivity issue in the simulator. Could you share the code where you initializePaymentSheet() and presentPaymentSheet()?
Could you also share which version of stripe-react-native you're using?
0.47.1
Thanks for sharing! Checking it now
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?
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
use the browser in the simulator
Are you integrating with Stripe in web or app? Browser usually refers to web development
In app but I thought that would suggest it's not a network error?
I tried my mobile hotspot and still the same issue
Could you try running our example app to check if this works on your simulator? https://github.com/stripe/stripe-react-native/tree/master/example
I was in the middle of trying this but was getting errors, I'll try again!
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.
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
ok cool! fyi i'm taking over for river - let me know when you want us to take another look
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
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
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?
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
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
weird - maybe presentPaymentSheet is being called twice somehow?
that's good that you've got it running though
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?
This is what was mentioned above
As I have the example app working though it probably isn't the simulator?
have you tried connecting your apple account to see if that resolves it?
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?
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: