#MathiasR-connect-transfers

1 messages · Page 1 of 1 (latest)

noble quail
#

Just to confirm I understand correctly - your goal is to make transfers to multiple separate connect accounts, but be able to specify the transfer amounts up front during Payment Intent creation?

drowsy gulch
#

Exactly

#

For legal reasons we would like the funds to be transfered as soon as possible so we would basically never hold them

#

I was looking at creating TransferCreateOptions and submitting them after creating the payment intent but before rendering the payment element. I was hoping to set the SourceTransaction -property, but that seems to want the id of a Charge. And we don't have a charge yet at that point

#

Or could I use the transfer_group property?

noble quail
#

When you only transfer to one account, you can use destination charges and specify transfer_data[amount] when you create the Payment Intent to automatically transfer the funds after payment is complete. This is NOT an option when you are trying to transfer with multiple connect accounts. Instead, you would have to wait for the Payment Intent to be complete (so that the charges is created) and then create Transfers with the source_transaction property. There is no way for you to make the transfer earlier

drowsy gulch
#

Ok. Could you explain what the use of the source_transaction field is?

noble quail
drowsy gulch
#

I've read that page probably like 20 times :-). So can the charge be created with the payment coming in later?

serene gull
#

Hi @drowsy gulch! Stepping in here for @noble quail and getting caught up

#

The source_transaction param allows you to transfer funds ahead of when they would be available due to the natural delay of funds when a charge is created. You can only transfer available funds or funds associated directly with a source_transaction to a Connected Account, otherwise you will hit an error.

drowsy gulch
#

So if we use the webhook approach and create the transfers there, will the money ever be in our balance?

#

So we register a webhook, and in that phase create the transfers, could the charge be "successful" and the money in our balance at that point?

serene gull
#

With the Separate Charges and Transfers approach the funds will be in your balance (either available or pending depending on the time of transfer vs. time of charge) before the transfer is created. You can't create a transfer prior to having the funds in your Platform balance to do so.