#meruemsama7212_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/1283461732953620481
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
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
Hi, i try to send fund with SEPA DD from customer's external Bank Account to merchant's connected account
๐ like I mentioned above, if you're using destination charges then you can omitt the header
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
Yes you need to remove
stripeAccount: clientId, // Specify the connected account for the payment
}```
i did it already and i have the same error
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
req_2thtVFHZBAyMwF
Yup, your code is still passing the header: https://dashboard.stripe.com/test/logs/req_2thtVFHZBAyMwF
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
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?
i just saved the wrong file .. i removed and saved the file without passing stripe account to header and i have this : req_OFz9a1HvCi9Hpq
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
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?
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
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.