#jchannon
1 messages · Page 1 of 1 (latest)
a credit card payment comes in and i want to issue a transfer from a platform account to a connected account. in this instance i don't know the txn id so can't use the source_transaction to tie them up so I assume I have to wait for funds to clear before initiating the transfer, therefore is there a webhook to know when this has happened so i can initiate the transfer
The source_transaction also works with charge IDs. So why can't you use the charge ID of the payment?
balance.available might do it. We can't use source_transaction as we have a third party taking the credit card payments for us and then tell us a sum of the amount they took so we can then initiate a transfer to the connected account but it now seems clear that we can't initiate the transfer straight away as the funds wont have cleared
Got it. Then yes I would recommend balance.available.
i guess that fires when each credit card payment clears though?
It fires every time the available balance increases.
do you know if the source_transaction can accept a list of transactions? ie you have two credit card payments of 50 and then initiate a transfer of 100 and then set the source_transaction to 123,456 ie the 2 txn refs
No that won't work. source_transaction is optional, but if you want to use it you can only pass one ID.
grr, ok 🙂
is there a way to pass the source_transaction and not the amount ie. if the source transaction is passed it uses the same amount on that transaction for the transfer amount?
No the amount is required, as mentioned here: https://stripe.com/docs/api/transfers/create