#SuperFly - transfer delay
1 messages · Page 1 of 1 (latest)
Good question. Looking in to it. Why are you looking to delay the transfer? Do you want to wait until certain funds settle on your account?
Yes, so we accept a charge from a customer, and then transfer a certain amount of money to the seller. The problem lies in that stripe doesn't let the actual money go to our stripe balance until a few days, so there is a chance we could not have the money to transfer to the sellers
So ideally we would like to delay the transfer until after the money from the charge is secured if that's possible, or if nothing else delay it a little longer to get closer to the funding time
We actually have a source_transaction parameter for this use case: if you specify a source transaction, the transfer will not happen until the funds from the charge are added to your availible balance https://stripe.com/docs/api/transfers/create#create_transfer-source_transaction
Can you maybe provide a short example by chance?
This doc has a good example with that parameter https://stripe.com/docs/connect/charges-transfers#transfer-availability
It explains the functionality in more detail too
Okay I think I'm understanding. Just to clarify, on the documentation you linked, it says
"A pending balance will transfer immediately but the funds will not become available until the original charge becomes available. See the Connect documentation for details."
What does it mean when it says a pending balance will transfer immediately
Essentially, if we get a charge for 10 dollars, and then tranfer that 10 dollars to a connected account based on the charge as the source, if our balance is currently $0.00, will it error?
It will not error, it will set up a transfer that will actually take effect once the funds would become availible on your account. Until then, the connected account will have $10 pending to go in to their balance.
And once the funds become availible in your account, they will be immediately transfered in to the connected accounts balance.
Slightly different example: you charge $10 and transfer $9 with this source_transaction parameter. For a bit you have $1 in your account's pending balance and the connected account has $9 in their pending balance. When the funds land, you will have $1 in your availible balance and they will have $9 in availible balance.
@flat steppe did the answer above solve your problem?
Yes! I have been implementing a solution and hopefully things are working now!