#Sarmento
1 messages · Page 1 of 1 (latest)
hello! assuming that the connected account is in the same region as your Platform account, you can create a Transfer : https://stripe.com/docs/api/transfers/create
The accounts are BR
it may not be necessary though if you use destination / direct charges :
https://stripe.com/docs/connect/destination-charges
https://stripe.com/docs/connect/direct-charges
Is necessary the param source_transaction, but i don't know what to provide in this parameter
what you would want to do when creating the Transfer is to include the corresponding Charge id (it'll look like ch_ or py_) in the source_transaction parameter : https://stripe.com/docs/api/transfers/create#create_transfer-source_transaction
The main point to remember is that when using source_transaction, if the payment is still pending, then the transfer will pull the funds from the pending balance. If the payment is already available, then the transfer will pull the funds from the available balance.
if you don't specify the source_transaction, it'll always try to use the funds from your available balance and if the payment funds is not yet available, and you don't specify the source_transaction then you may frequently run into the problem of insufficient funds
to be clear though, source_transaction isn't a required parameter
This is in Brazil accounts 🥲
"message": "For Transfers involving Brazil, the source_transaction parameter is mandatory. See https://stripe.com/docs/connect/charges-transfers for more information. If you have any question, please contact us via https://support.stripe.com/contact.
ah, sorry, missed out on that requirement for BR
then include the source_transaction
What would this py_ ?
if it's a non-card payment, the object id will start with py_
Ok, so, in the case of Brazilian accounts, do I have to create a charge before the transfer?
where would the funds to transfer to the connected account come from otherwise?
The funds would come from the account that manages the app
alright, but where would the funds from the platform account (i.e. account that manages the app) come from?
Would come from purchases of services and user subscriptions
Example of the use case of this transfer, a user buys a package of messages (these messages are "special"), when he sends such a message to another user, the user who receives the message also receives 50% of the value of a message
If the purchases of services and subscriptions are made in the platform, you will be able to set the source_transaction from those payments