#batz_api

1 messages ยท Page 1 of 1 (latest)

forest ospreyBOT
#

๐Ÿ‘‹ 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.

cinder grove
#

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

night jay
#

What's the request id of the failed request above?

cinder grove
#

One moment

night jay
#

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

cinder grove
#

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!
      }
    );
night jay
#

This is client-side, correct?

#

Not server-side?

cinder grove
#

yes

#

ah i need to use server side ?

cinder grove
#

oh that actually makes alot of sense ๐Ÿ˜‚

night jay
cinder grove
#

oh

#

but then how do i confirm it properly ?

night jay
#

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

cinder grove
#

ah

night jay
#
          await stripe.confirmCardSetup(setupData.clientSecret, {
            payment_method: setupData.clonedPaymentMethodId, // โœ… Use cloned payment method
          });```
cinder grove
#

understood. sorry

night jay
#

No worries

cinder grove
#

thank you ๐Ÿ™‚

#

have a great day really appreciate this

#

this is what happens when you stare at code to long !

night jay
#

Same to you!