#blazed_code

1 messages ยท Page 1 of 1 (latest)

manic kindleBOT
#

๐Ÿ‘‹ 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.

mystic wigeon
#

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

GitHub

Iโ€™m working with a Stripe account (platformAccount) and using Stripe Connect to set up a connected account. Iโ€™m trying to save a card for a customer on the connected account by creating a SetupInte...

random crater
#

๐Ÿ‘‹ Hi there! Let me take a look

mystic wigeon
#

thanks !
this is the session object i get from my backend :
{"customerId": "cus_Ta56meZ8hvTZJr", "ephemeralKeySecret": "ek_test_YWNjdF8xU2NsQlhBT1dEUGRRWGc0LHBoU1VhMmF5aDViVHpPMzF3RUxpZjR2b2x0Ymt2Z1c_00Ab5lG5Xv", "paymentIntentClientSecret": "pi_3ScuwZAOWDPdQXg4191KZDvy_secret_7O6paxCGYwFdJHRnnKvmTrr2h"

random crater
#

What does your <StripeProvider> look like?

mystic wigeon
#

<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

random crater
#

Does it work as expected when you pass the connected account's stripeAccountId into <StripeProvider>?

manic kindleBOT
mystic wigeon
#

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

somber dust
#

hi! I'm taking over this thread. let me know if you have other questions!

somber dust
#

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.

mystic wigeon
#

thanks a lot