#dimitar_code

1 messages ยท Page 1 of 1 (latest)

river horizonBOT
#

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

brittle panther
wind heart
#

req_yiyKTRpPXyuOmJ

brittle panther
wind heart
#

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..

brittle panther
#

Who is the merchandise retailer, sorry? Can you describe your setup in the Connect/Stripe context โ€“ who is the platform etc

wind heart
#

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?

river horizonBOT
brittle panther
#

Can you share an example intent you created?

wind heart
#
{"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?

spice ice
#

Hey! Taking over for my colleague. Let me catch up.

wind heart
#

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..

#

๐Ÿ˜ฆ

spice ice
#

You are trying to make a transfer from a Connected Account to another in other words.

wind heart
#

mhm, thats what i want

spice ice
#

can i do this via connect account?
You can't make a transfer from a Connected Account to another.

wind heart
#

is it just the way im doing it, or there is not available way of doing it?

spice ice
#

That's not supported.

wind heart
#

ok what are my options

spice ice
#

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

river horizonBOT
wind heart
#

i see

#

Is it possible to know the reason why transfers between connected accounts are not allowed?

spice ice
#

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.