#peos - Connect
1 messages · Page 1 of 1 (latest)
Thank you
For the first one you attempted to confirm on your platform account, but you needed to confirm on the connected account instead. Looks like Stripe.js was not initialized properly to make requests on the connected account: https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
Looks like the same problem for the other two as well.
Yeah that's what we could see from the error logs but if I give you another example you'll see that we're correctly confirming on the connected account and its the same code base req_IzxqWWEqYolAYh - we're struggling to find why it works sometimes and not others - the code to confirm is pretty much lifted from the Stripe docs. The only vague thread through a lot of them is that it appears to be users on mobile
That request (the successful one) had the Stripe-Account header set to the connected account ID. The other failed requests do not. It sounds like maybe the code that's passing the connected account ID to Stripe.js is failing sometimes? Maybe providing an empty string or null value?
Ah okay I see - so if we pass the stripeAccountId property but for some reason there is no value then it would default to the platform Stripe Account?
Yes.
okay that does help - thanks very much we'll dig into that a bit more 👍