#illicodif
1 messages · Page 1 of 1 (latest)
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?
Yes ! cs_test_a1MGxSk9yxUZN8DgFYM8o4VfnP0gLOCCWgXc6zVqTl4Ukmk07HozTMpZIL
Ah, so this Checkout Session is embedded in your HTML then? Do you have a URL I can visit to see it?
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 !
Is that the Connect account's Public API key?
i only have one Public api key, for my platform
No worries, just making sure. So is the method you mentioned above working now?
I'm implementing, almost done