#dupont-checkout

1 messages ยท Page 1 of 1 (latest)

stark yarrow
#

@knotty tundra do you use stripe.js and redirectToCheckout?

knotty tundra
#

Nop

#

server-side

stark yarrow
#

ok. What's the exact error you're getting?

knotty tundra
#

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

stark yarrow
#

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

knotty tundra
#

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 ?

stark yarrow
#

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

knotty tundra
#

yes ok

#

thanks

#

"once again"

#

๐Ÿ˜ฌ

#

In few months I'm ready to be on the other side for Stripe support ๐Ÿ˜‚