#stevee_error

1 messages ¡ Page 1 of 1 (latest)

indigo hillBOT
#

👋 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.

strange locust
nova rover
#

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

strange locust
#

Okay so you're not buiding a Stripe App specifically

#

Sure can you show me how you're initializing Stripe in your app

nova rover
#

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

strange locust
#

what's {children}? is that your main App?

nova rover
#

yeah

#

the entire app basically

strange locust
#

okay give us a moment

nova rover
#

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

quasi umbra
#

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?

nova rover
#

Hi jack, yeah that's correct

quasi umbra
nova rover
#

That's my apple developer account and app.json

quasi umbra
#

Ok, how about xcode?

nova rover
#

This is from my xcode logs when creating a new build

quasi umbra
nova rover
#

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)

strange locust
#

sorry for the delay, we're still looking at what could be the possible cause

indigo hillBOT
quasi umbra
#

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?

nova rover
#

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

quasi umbra
#

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 ?

nova rover
#

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

quasi umbra
#

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 ?

nova rover
#

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))

quasi umbra
#

So is <Stack> wrapped inside StripeProvider ?

nova rover
#

Yeah

quasi umbra
#

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?