#blazed_code
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/1448610713798049883
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
the full message i intended to post :
Hello, I m trying to set up the stripe-react-native library.
I am a platform and i need my connected account to receive payments. I have coded the flow to create the customer and the payment intent on my connected account, but on the mobile app it says "Error: No such payment_intent: 'pi_3Sc..."
The mobile application is wrapped with a StripeProvider with the publishable key of the platform. there seems to be a "missing" argument in initPaymentSheet that should accept stripeAccountId argument.
This seems to be a problem for others :
https://github.com/stripe/stripe-react-native/issues/1709
๐ Hi there! Let me take a look
thanks !
this is the session object i get from my backend :
{"customerId": "cus_Ta56meZ8hvTZJr", "ephemeralKeySecret": "ek_test_YWNjdF8xU2NsQlhBT1dEUGRRWGc0LHBoU1VhMmF5aDViVHpPMzF3RUxpZjR2b2x0Ymt2Z1c_00Ab5lG5Xv", "paymentIntentClientSecret": "pi_3ScuwZAOWDPdQXg4191KZDvy_secret_7O6paxCGYwFdJHRnnKvmTrr2h"
What does your <StripeProvider> look like?
Its props has a stripeAccountId property: https://stripe.dev/stripe-react-native/api-reference/interfaces/InitStripeParams.html
<StripeProvider
publishableKey={stripePublishableKey }
merchantIdentifier="merchant.com.hellocoach"
urlScheme="hellocoach"
>
PublishableKey is the platform account pk
also, i want to handle mayment only trhough stripe
no apple or google pay
Does it work as expected when you pass the connected account's stripeAccountId into <StripeProvider>?
<StripeProvider
publishableKey={stripePublishableKey }
merchantIdentifier="merchant.com.hellocoach"
urlScheme="hellocoach"
stripeAccountId="acct_1SclBXAOWDPdQXg4"
>
it works like this
thank you
not very straighforward since all methods in the backend have an object {stripeAccountId} and here it needs to be passed through a provider
I have wrapped my whole app with stripe provider, should i only wrap the payment section ?
hi! I'm taking over this thread. let me know if you have other questions!
.
I have wrapped my whole app with stripe provider, should i only wrap the payment section ?
I think wraping just the payment section would make more sense.
thanks a lot