#illicodif

1 messages · Page 1 of 1 (latest)

solar wingBOT
toxic coyote
#

So the API call you're making to create the Checkout Session is creating that Checkout Session on the Connect account. So you would need to make all other Checkout-related requests as that Connect account in the same manner.

#

Do you have a Checkout Session ID for the Checkout Session that gave you the above error?

torpid blade
#

Yes ! cs_test_a1MGxSk9yxUZN8DgFYM8o4VfnP0gLOCCWgXc6zVqTl4Ukmk07HozTMpZIL

toxic coyote
#

Ah, so this Checkout Session is embedded in your HTML then? Do you have a URL I can visit to see it?

torpid blade
#

The checkout is embedded in my React app. In localhost for test actually.
But i don't understand why it's working with the first method and not the second.
I need a specific API key for Stripe.Js for each connected account ?

#

Ok, with the doc and your advice i understand my error :
I need to add the stripe account in the Stripe.js

// Set the connected Stripe Account to collect payments on behalf of that account
const stripe = Stripe('pk_test_51M0LxeC3FuEc72hD5Y0FWPyY1IeV5DHDnl4fMotwLdyqw8lXAOHha8zaPDCNLk2c4SsERzQUAwSbWY1eUMOBekMA00t4SuHN95', {
stripeAccount: '{{CONNECTED_ACCOUNT_ID}}'
});

#

thanks a lot !

toxic coyote
#

Is that the Connect account's Public API key?

torpid blade
#

i only have one Public api key, for my platform

toxic coyote
#

No worries, just making sure. So is the method you mentioned above working now?

torpid blade
#

I'm implementing, almost done