#Am.D-Account
1 messages · Page 1 of 1 (latest)
Could you summarize your question? Are you asking about how to change the connected Stripe Id when create Payment Intent?
hello , i got no such payment intent error , which i belive it has been generated with a different account id from the one i set
i am using react native and SDK from stripe
how can i change my
this is where i am initializing and use it as a provider
So when you initialize client side you need to fix a Connected Account Id
You were correct that "No such PaymentIntent" error is because the PI belongs to different account
how can i send muliptle account id ?
I am not sure if that's possible. Is that React or React Native?
the backend is generating the payment intent with multiple account id
React Native
Describe the bug Hello, i am trying to implement this flow: https://stripe.com/docs/payments/save-and-reuse I am using stripe custom connect so i can't do exactly the same as in the doc con...
I believe this issue mentioned about the same issue
Can you try this suggestion?
keep it in a state variable and pass that to the StripeProvider component
gonna check it , please dont archive our talk @steep wave
Sure
and how can we use multiple account id for there?
the backend is generating payment intent connected with multiple account , how is that possible from app side. ? @steep wave
PaymentIntent can only be generated from backend
If you are frontend developer you shouldn't worry about it
It depends on the system design. I would say you need to know exactly what account id before going to the confirmation page, then pass the value onto the state variable mentioned in above solution
How did you retrieve the PaymentIntent secret? via a call to your backend right? You can ask your backend team to also return the account id there
so they need to return a pair of (accountId, PaymentIntent secret)
ye i know , but the question is :
backend is generating a payment intent connected with multiple account ids .
how can i pass multiple account id ?
a payment intent connected with multiple account ids
This is not possible
a PaymentIntent only tie to one Stripe account Id
i talked with backend team
as you can see we are able to add multipe account there , and backend will send me an array of account ids @steep wave
what will be the approach here /
hmm I see
That flow "Separate Charges and Transfer" mean you transfer to multiple different Accounts, but the PaymentIntent belongs to your Platform account
meaning you don't need to pass in stripeAccountId, just initialize with your platform's publishable key
then you should find the PI
am i able to send null for account id ? @steep wave
You can just don't set stripeAccountId
but while initializing i am adding it to the provider @steep wave
but it should be dynamically changable
i will try to handle this , otherwise gonna ask for help
cheers
Hi! If you are using Destination Charges, you'll never need to set stripeAccountId on the frontend, that's why you can completely remove it.