#stevee_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/1405747303289065524
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
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.
- stevee_code, 6 hours ago, 11 messages
hello, are you building a Stripe App: https://stripe.com/apps?
Im building a react native app using expo go and then connected stripe to it
If it helps I can provide ss's of my code
Okay so you're not buiding a Stripe App specifically
Sure can you show me how you're initializing Stripe in your app
This is my backend function which is run by supabase
these get called in my jsx element
And this is my stripe provider which wraps my layout.jsx
what's {children}? is that your main App?
okay give us a moment
My main error is that in development, everything works fine, but in test flight, i get a 'merchantId' error, not sure what that could mean
Hi @nova rover I'm also an engineer from Stripe. To clariy, you didn't get this error in Debug build, and only encountered this in Testflight release build?
Hi jack, yeah that's correct
Did you register the same merchantIdentifier successfully in your Apple developer account, and also set the same merchnat ID on your xcode https://docs.stripe.com/payments/accept-a-payment?platform=react-native#integrate-with-xcode ?
Ok, how about xcode?
This is from my xcode logs when creating a new build
https://github.com/stripe/stripe-react-native/blob/master/ios/StripeSdkImpl.swift#L86 the merchnatIdentifier is set here, can you add a breakpoint in your iOS app and see if the value is set successfully?
I can try yeah, lemme see what I can find
I can see the value in my entitlements, where the value is set: "<key>com.apple.developer.in-app-payments</key>
<array>
<string>merchant.com.stephendsmith22.barhop</string>
</array>"
Do I need to be doing something in my stripe account? I went through the checklist for going live (verifying id, confirming integration choices, and getting api keys)
sorry for the delay, we're still looking at what could be the possible cause
Hi @nova rover yes I saw the entitlement from the screenshot. Did you get a chance to debug your iOS app to make sure that the merchantIdentifier is set successfully?
Is that something I can see in xcode logs?
Because Im in react native, in test flight, it's kinda hard to see logged messages or the merchantIdentifier in test flight
No, there's no logs for merchantIdentifier in StripeSdkImpl
Did you use the same code in the test flight build? i.e., hardcoding the merchantIdentifier in StripeProvider ?
yes
const initResponse = await initPaymentSheet({
merchantDisplayName: 'BarHop Gainesville',
customerId: params.customer,
customerEphemeralKeySecret: params.ephemeralKey,
paymentIntentClientSecret: params.paymentIntent,
allowsDelayedPaymentMethods: true,
defaultBillingDetails: {
name: user?.full_name || "Unknown User",
email: user?.email || "unknown@example.com"
},
returnURL: Linking.createURL("stripe-redirect"),
applePay: {
merchantCountryCode: 'US',
},
});
It seems that an error is throwin after trying to call initPaymentSheet, but I'm not sure 1) if this is the case, and if so 2) why this is
The code snippet looks OK to me. The merchantIdentifier is set via StripeProvider. Can you also double check this piece of code is in a child component wrapped inside StripeProvider ?
It should yeah, it wraps a stack screen and in those tabs is my element
<Stack>
<Stack.Screen
name='index'
options={{ headerShown: false}}
/>
<Stack.Screen
name='(tabs)'
options={{ headerShown: false}}
/>
</Stack> (Modal is in (tabs))
So is <Stack> wrapped inside StripeProvider ?
Yeah
Hmm, that's really strange. Are there any configuraiton difference between your Debug build and testFlight build? Is the main.js that's bundled to the testFlight build up-to-date?