#etahnw14-checkout-redirect
1 messages · Page 1 of 1 (latest)
@silent pelican the Session is created on the Connected account here (direct charges flow)
when you load Stripe.js client-side you have to specifically initialize it for that specific account, see https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application
An easier path forward is to redirect from the server, the Session has a url property, way easier
@slate finch Sorry, I didn't mention the way I load Stripe.js in details, I included connected account's id like following code:
const stripe = await loadStripe(publicKey, {
stripeAccount: connectedAccountId,
});