#caderann_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/1412750590320312330
đ 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.
- caderann_code, 3 hours ago, 17 messages
sample initPaymentSheet param:
{"allowsDelayedPaymentMethods": true, "customerEphemeralKeySecret": "ek_test_YWNjdF8xUWFFV2xEYVliUWVoRXpyLGhIbDltZUJJdG1EbWs0RFVJMzU5djdnYzRURWU3bG8_00YbUdZlLo", "customerId": "cus_SzCY5lBss23N4K", "defaultBillingDetails": {"name": "Sahitya Razorbae"}, "merchantDisplayName": "Germany", "returnURL": "studioyoucustomerdemo://setup-intent-redirect", "setupIntentClientSecret": "seti_1S3ECIDaYbQehEzrzbzKYa5R_secret_SzCbdTO1jyhqJLBNHaS8Ln7BLRoQb0j"}
Where's the code to init the Stripe provider? https://docs.stripe.com/payments/accept-a-payment?platform=react-native&ui=payment-sheet#setup-client-side
I suspect you're missing the stripeAccountId prop: https://stripe.dev/stripe-react-native/api-reference/interfaces/InitStripeParams.html#stripeaccountid
Documentation for @stripe/stripe-react-native
Talked about here: https://docs.stripe.com/connect/authentication?create-client=react-native
we're passing it in the stripeProvider
let me share it
<StripeProvider
stripeAccountId={stripeAccountId || stripeSession?.stripe_account_id}
publishableKey={ENV.STRIPE_KEY}
urlScheme={ENV.url_prefix}
threeDSecureParams={threeDSecureParams}
merchantIdentifier={ENV.merchantId ?? undefined}
>
{isStripeCheckoutModalOpen && (
<StripeCheckout
session={stripeSession}
onSuccess={handleStripeSuccess}
onFail={handleStripeFail}
serviceId={serviceId}
saleId={saleId}
/>
)}
{children}
</StripeProvider>
And those values are definitely set to acct_1QaEWlDaYbQehEzr? The account the intent was created on
let me confirm
and ENV.STRIPE_KEY is the publishable key of the platform (acct_1DHUSEAk5RfErHut)?
I've verified the above, indeed the stripeSessionId and stripeAccountId are null as the backend wasnt returning it, do need to set both or just the stripeAccountId?
yes, this is the correct key
You just need to ensure that stripeAccountId is the acct_xxx ID of the connected account in question
okay, I'll need some time to allow backend to send the account ID in the setup-intent API