#batz_api
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1435662353000566960
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
so in a basic sense I am trying to confirm a setupIntent that should be created on the connect account but i feel like somethings wrong like my main platform account is still creating the setupIntent and not the connect account
What's the request id of the failed request above?
One moment
So you created it properly on the connect account I see: https://dashboard.stripe.com/acct_1SDOWwRN7jZzrFwz/test/logs/req_jeSsdWmpjrTky6
So that means your confirm request isn't passing the stripe account header properly
If you share the confirm request id I can see what's wrong
const { error: confirmError, setupIntent } =
await stripe.confirmCardSetup(setupData.clientSecret, {
payment_method: setupData.clonedPaymentMethodId, // โ
Use cloned payment method
});
So this is how i am confirming it
and this is the way co pilot told me to pass it but when i look at the docs it doesnt look like this exists for the confirm payment method
const { error: confirmError, setupIntent } =
await stripe.confirmCardSetup(
setupData.clientSecret,
{
payment_method: setupData.clonedPaymentMethodId,
},
{
stripeAccount: connectedAccountId, // โ
This is the missing piece!
}
);
oh that actually makes alot of sense ๐
no you don't
Did you see the above link I just sent
You need to initialize stripe.js with the connect account id
Then you can just call it the way you were
ah
await stripe.confirmCardSetup(setupData.clientSecret, {
payment_method: setupData.clonedPaymentMethodId, // โ
Use cloned payment method
});```
understood. sorry
No worries
thank you ๐
have a great day really appreciate this
this is what happens when you stare at code to long !
Same to you!