#dupont-checkout
1 messages ยท Page 1 of 1 (latest)
ok. What's the exact error you're getting?
It's the first time I got something about the keys
stripe.api_key = <platform_key>
Checkout in setup for a customer on the plaform works well
Checkout in setup with stripe_account=<connect_id> + customer=<customer_id> (of the connected account) leads to this error
hmm. Are you sure you don't use stripe.js? How exactly do you redirect/get to the Checkout page?
like do you just grab session.url in your python code and 3xx redirect, or something else?
I ask because this error is usually caused by not initialising stripe.js for the connected account if you redirect through it
Oh you right, for this route we respond in a JSON the URL when we use stripe.redirectToCheckout
BTW it's stupid is better to use a redirect on the checkout url
no ?
it is generally easier, redirectToCheckout used to be required, but isn't anymore, so you can replace it with just a 3x from your server
but yeah you get this error if you don't pass the stripe_account option to stripe.js as well : https://stripe.com/docs/connect/authentication#adding-the-connected-account-id-to-a-client-side-application