#dimitar_code
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/1338491270510940211
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Can you share the ID (req_xxx) of the API request? 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.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
req_yiyKTRpPXyuOmJ
You can't do that on a standard account (acct_1OltIGBYrkrWpDA0). You're essentially trying to debit the account balance, which only works for express and custom accounts: https://docs.stripe.com/connect/account-debits
ok, i need some kind of alternative then
the idea is that my event organizers sometime want to transfer money directly to their merchandise retailers
another alternative would be to transfer the amount first to the platform acc then again to the second connect acc right? but i dont think thats very good..
Who is the merchandise retailer, sorry? Can you describe your setup in the Connect/Stripe context โ who is the platform etc
So i'm developer for a platform called EventsX(example)
On the platform users/event organizers/merchandise retailers can connect their Stripe accounts via Stripe Connect
So when a Event Organizer sells a ticket+merchandise i make payment intent on behalf of the Event organizer.
Then they want the merchandise price to be transferred to the merchandise retailer which is also connected on our platform.
i saw that on the payment_intent there is transfer_data object where i can provide destination account, but i suppose it cannot be another connect acc?
Can you share an example intent you created?
{"code":"resource_missing","doc_url":"https:\/\/stripe.com\/docs\/error-codes\/resource-missing","message":"No such destination: 'acct_1Qqv4iAKBEYBouXn'","param":"transfer_data[destination]","request_log_url":"https:\/\/dashboard.stripe.com\/acct_1OltIGBYrkrWpDA0\/test\/logs\/req_prb6sFRyyfjM2N?t=1739192463","type":"invalid_request_error"}
i just tried but i get this
just for example this is how the code looks:
$charge = \Stripe\PaymentIntent::create(
array(
'amount' => $amount, // amount in cents
'currency' => $currency_code,
'capture_method' => 'manual',
"description" => $description,
"application_fee_amount" => 1000,
"statement_descriptor" => 'test',
'payment_method_types' => ['card'],
'transfer_data' => [
'destination' => 'acct_1Qqv4iAKBEYBouXn',
'amount' => 1000
]
), array('stripe_account' => $connected_stripe_account_id)
);
as per ChatGpt which my client used, their example should have worked..
Is it possible to remove the restriction "Cannot create transfers between connected accounts." for my Application Stripe account?
Hey! Taking over for my colleague. Let me catch up.
Nope.
is this why this isnt working as well?
can i do this via connect account?
by passing -H "Stripe-Account: acct_1OltIGBYrkrWpDA0"
i will try now
โฐโ$ curl https://api.stripe.com/v1/transfers \
-u xxxx \
-d amount=1000 \
-d currency=GBP \
-d source_transaction=ch_3QqwuHBYrkrWpDA000Ypxr6c \
-d destination=acct_1Qqv4iAKBEYBouXn \
-H "Stripe-Account: acct_1OltIGBYrkrWpDA0"
{
"error": {
"message": "The `source_transaction` parameter can only be applied to transfers from a platform account to a connected account.",
"param": "source_transaction",
"request_log_url": "https://dashboard.stripe.com/acct_1OltIGBYrkrWpDA0/test/logs/req_AZuftk8hfuDtYc?t=1739193693",
"type": "invalid_request_error"
}
}
apparently not..
๐ฆ
Because you are making mixing Direct Charge and destination charge
You are trying to make a transfer from a Connected Account to another in other words.
mhm, thats what i want
can i do this via connect account?
You can't make a transfer from a Connected Account to another.
is it just the way im doing it, or there is not available way of doing it?
That's not supported.
ok what are my options
-
To follow this flow https://docs.stripe.com/connect/separate-charges-and-transfers
-
Can i debit a connected account1 then credit connected account2? I tried but i got
Cannot create account debit on this accountreq_iUIZs44Hb7Mseo
To follow this flow https://docs.stripe.com/connect/separate-charges-and-transfers
Yes that's an option.
Can i debit a connected account1 then credit connected account2? I tried but i got Cannot create account debit on this account req_iUIZs44Hb7Mseo
Yes, but it's not supported for all cases, it's very restrcited. You can learn more here: https://docs.stripe.com/connect/account-debits
i see
Is it possible to know the reason why transfers between connected accounts are not allowed?
It's simply not supported by Stripe. All funds should pass through the Platform Account, as there is no direct link between the two Connected Accounts.