#smontamufloni_api

1 messages ยท Page 1 of 1 (latest)

wanton axleBOT
#

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

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

tribal blaze
#

I just have a doubt, why is the connected account option blocked? Maybe that's why I can't perform the transfer?

dim totemBOT
next ermine
#

Can you provide the sample request ids? The Charge and the Transfer 2 requests

tribal blaze
#

Transfer: tr_3Oyd7JLTZRn8EyEP1kAh71Cf
Charge: ch_3Oyd7JLTZRn8EyEP1FfnDIvq

#

I just can't understand this, I created a PayamentIntent that the user pays, at this point the recipient of the transaction receives the amount and the platform collects the fees (which are for example X+Y)
I then end by transferring Y to a connected account, but in that transfer I get the error....
Maybe there is some configuration on the dashboard that is not active? I don't see that from the documentation though

next ermine
tribal blaze
#

That's the thing, I have to (as a platform account) collect fees to then give to another connected account. Let me explain further

  • Alice buys (100 EUR for example) from Bob (which is a connected account).
  • In the payamentIntent the transfer_data.destination is Bob
  • The platform collects the fees (application_fee_amount)
  • Platform turns over X% of the application_fee_amount to another connected account

To do this then:

  • I create the payamentIntent, the user pays, the platform receives the fees (and so far so good)
  • As a last step I would miss to take X% of the fees withheld in step 1 and give them to a connected account, to do this I am using precisely transfer, is this correct?
wanton axleBOT
primal anvil
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

#

if you have a multiparty transfer instead it's better to use separate charges and transfers

tribal blaze
#

I have already tried associating a transfer_group with the payamentIntent and transfer but to no luck..

primal anvil
#

so let's go back to your example

tribal blaze
#

Yes I set the source_transaction, now maybe I try again so I will pass you the ids

primal anvil
#

you create a PaymentIntent for Alice with a 100 EUR amount directly on your account without passing the transfer_data

#

then you create a transfer to Bob's account with the 100-application_fee_amount with source_transaction (the latest_charge ID from the PaymentIntent)

tribal blaze
#

Got it, I will try and let you know, meanwhile thank you very much for the very fast support!

primal anvil
#

then you create another transfer with application_fee_amount 8 X% with source_transaction

#

the problem is that you also need to account for the Stripe fees

#

because these will be taken from your platform's account