#meruemsama7212_api

1 messages ยท Page 1 of 1 (latest)

winged latchBOT
#

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

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

visual sky
#

Hello
Just to clarify, what exactly are you trying to do?

You're using Stripe account header to acct_1Pv1aSP6NOfBhTCb and also setting acct_1Pv1aSP6NOfBhTCb as the destination?

If you're trying to create Destination charges, you don't need to set Stripe-Account header in the request

tall spire
#

Hi, i try to send fund with SEPA DD from customer's external Bank Account to merchant's connected account

visual sky
#

๐Ÿ‘ like I mentioned above, if you're using destination charges then you can omitt the header

tall spire
#

const paymentIntent = await stripe.paymentIntents.create(
{
amount: 1000, // Amount in cents (1000 = โ‚ฌ10)
currency: "eur", // Assuming EUR as the currency
customer: customerId,
payment_method: paymentMethodId,
off_session: true, // Payment is made without customer interaction
confirm: true, // Confirm the payment immediately
transfer_data: {
destination: clientId, // The connected account ID
},
},
{
stripeAccount: clientId, // Specify the connected account for the payment
}

the srtipeAccount?

#

i tried but got the same error

visual sky
#

Yes you need to remove

        stripeAccount: clientId, // Specify the connected account for the payment
   }```
tall spire
#

i did it already and i have the same error

visual sky
#

If you're getting the same error then that means your code is still passing the Stripe-Account header somewhere..

Can you share the failed request ID?
https://support.stripe.com/questions/finding-the-id-for-an-api-request

tall spire
#

req_2thtVFHZBAyMwF

visual sky
tall spire
#

maybe because i have set the setupIntent with the srtipeAccount header

#

sorry for my ignorance but where do you see that it is passed to the header?

#

here is the log for the setup intent it might be because of it? req_9bIbS8MiUWChMz and the confirmation : req_iohA4jiCNvjjsE

visual sky
#

Yes the SetupIntent request also passes the stripeAccount parameter but I don't know how that's relevant.

sorry for my ignorance but where do you see that it is passed to the header?
we have our own tools to investigate.. Are you able to load the request in your dashboard?

tall spire
#

i just saved the wrong file .. i removed and saved the file without passing stripe account to header and i have this : req_OFz9a1HvCi9Hpq

visual sky
#

You saved the payment method on the connected account since you created the SetupIntent using the stripeAccount header.

The payment method needs to exist on the platform account in order for you to charge it. So you'd need to create SetupIntents without using stripeAccount header as well..

Pleae refer to our docs: https://docs.stripe.com/connect/collect-then-transfer-guide

tall spire
#

what i try to do is a SEPA DD from the connected account's customer external bank to the connected account balance is it the right way?

visual sky
#

I'm not sure what you're asking about.. I would suggest you reach out to our support about that, they should be able to help guide you through your usecase and help further
https://support.stripe.com/?contact=true