#sebastian-flow_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/1351172649921024052
๐ 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.
- sebastian-flow_api, 2 days ago, 14 messages
Hi there ๐ I see you're using the stripeAccount header to create the Payment Intent on a Connected Account. Are you also initializing your client-side code using stripeAccountId so it's initialized against the same Connected Account where you created the intent?
https://docs.stripe.com/connect/direct-charges?platform=react-native#stripe-initialization
Toby, not sure, let me check that very quickly
I am not doing that. This is a marketplace so all users can buy from different sellers.
@lucid otter
That's why the intent isn't being found then. That means your client-side code is initializing against your Platform account, and the Payment Intent you're specifying won't exist there.
I might need to hook that with Redux and change it for each connected account...
Not sure if that will work
@lucid otter is it a common practice to update this value? The link you provided would not work for a marketplace as I am interpreting it. How do I sell products from different sellers?
Why wouldn't it work? You don't need to initialize Stripe until it's time for payment, and at that point you'd know the seller right?
Taking a step back, in your customer experience, do your cusotmers primarily interact with your sellers (in which case Direct Charges are likely the best path), or is the customer experience that they're interacting with your Platform/marketplace (in which case Destination Charges are probably a better fit)?
I will have to move the StripeProvider then to the view. I was using it at root level. Wrapping the app component.
@lucid otter they interact with the sellers directly.
Gotcha, then I'd recommend continuing down the Direct Charges flow, and adapt your client-side code accordingly..
Any time!