#omidroostaeifarsi

1 messages · Page 1 of 1 (latest)

fading nestBOT
distant notch
#

Hi 👋 sounds like you're working on a Separate Charges and Transfers flow?

brittle dove
#

All payments are deposited in the main account after a few days and this can be seen in the panel.

distant notch
brittle dove
#

Yes, I know about the payment processing flow

distant notch
#

Using that parameter does get a bit harder if you're accepting asynchronous payment methods like ACH Direct Debits.

brittle dove
#

Our process is that all the money enters the account platform and after that we transfer the money to connect accounts.

#

In this screenshot that I sent, an amount of money will be deposited into the main account tomorrow

#

1- I want to know what time of day this money is deposited in the main account

#

2- And what payments have been calculated in this transaction

distant notch
brittle dove
#

I need those via webhooks

#

i checked these transactions, the payments are deposited at 2 work day times, I want to deposit the amounts of each connect account to their account when the payments of day 12 are deposited into the platform account.

#

For example, if the amount of $18,104 becomes available on August 15, I will transfer the share of each connect account

distant notch
#

I'm sorry, I'm having a hard time parsing what exactly it is you're trying to accomplish.

brittle dove
#

oh sorry

distant notch
#

No, I'm sorry, I feel like something isn't quite clicking for me and I'm not sure what.

So taking a step back, is your goal to build a process that automatically transfers funds to your Connected Accounts once the Charge that is making those funds available has finished settling on your Platform Account?

fading nestBOT
brittle dove
#

for example, tomorrow $1000 (the sum of the payments of the previous two days) will be deposited into the main account, I want to be informed about this through a web hook and then transfer the amounts related to each account connection to their account. And I need to know what range of payments this 1000 dollars includes, according to which I can check the orders of our own system and only transfer the money of those orders.

distant notch
#

That's going to be tedious.

There are very few webhook Events that correspond with upcoming activity, and as far as I'm aware none that relate to your balance.

balance.available is the only Event that comes to mind that is triggered when your balance changes, but those Events won't contain references to the Balance Transactions that caused your balance to change.

brittle dove
#

Almost as you said, should this operation be done by the Stripe platform itself, or should our system do it through an API?

brittle dove
distant notch
# brittle dove Almost as you said, should this operation be done by the Stripe platform itself,...

If by "this operation" you're referring to creating a Transfer to move funds to your Connected Accounts, that is something you explicitly need to do if you're using a Separate Charges and Transfers flow. However, you can create the Transfer before funds are available by using the source_transaction parameter I mentioned earlier. Doing so will cause the Transfer to be performed once the funds are available on your Platform account.

brittle dove
#

we use standard charges

distant notch
brittle dove
#

In this method, this operation must be done on each payment, but we want it to be transferred at once, is this correct?

distant notch
#

Correct, the approach I'm referring to is handled on a per-payment basis. If you want to do lump sum Transfers then you will need to build your own logic for that.

brittle dove
brittle dove
distant notch
#

Oh, you're running into problems because the balance on your Platform Account is automatically being paid out before you can make Transfers from your Platform Account to your Connected Accounts?

brittle dove
#

In this way, the payments are deposited into the platform account and after our internal operations on the order, they are deposited into the connect accounts, but the problem here is that we do not know exactly what day the money that is available now is for, and our calculations are based on the same.

brittle dove
distant notch
# brittle dove In this way, the payments are deposited into the platform account and after our ...

There isn't a good way to find that out until the funds are leaving your Platform account's balance to be paid out to your bank account.

Oh, if you're on manual payouts then there isn't a good way to see what is impacting your balance and when.

Do you have an example payment I can look at from your flow? I have an idea on how to track this (though you'll need to start tracking the associated objects earlier in the process) but would like to take a closer look at how you're handling things to make sure it will work.

brittle dove
#

I want to know what payments will be included in the money that will be deposited into the platform account tomorrow, so that I can process the same payments and transfer them to the account accounts.

distant notch
#

That's not possible

brittle dove
#

To explain the problem another way, all the payments that are made will be available in the platform account after at least two working days, I will notice the availability of this money through a web hook. Now I want to know what these payments are for, so that I can transfer the amount of each payment related to the Connect account and deposit the rest of the money into the bank account.

pure jewel
#

Hello! I'm taking over and catching up...

brittle dove
pure jewel
#

Your best bet is probably to listen for the balance.available Event which will tell you when your balance increases. Then, when you get that Event, you can list recent Balance Transactions to see what changed the balance recently: https://stripe.com/docs/api/balance_transactions/list

#

Then you can determine what to do next based on what you find there.

brittle dove
#

Is a list of transactions associated with the event that calls the webhook

pure jewel
#

No.

#

There's no Event that fires every time your balance changes, and there's no Event that fires which tells you why your balance changed.

#

balance.available is the closest; it fires when your available balance increases, but it doesn't fire for negative amounts, and it doesn't tell you why the change happened.

brittle dove
pure jewel
#

Correct.

brittle dove
#

So when this event is fired, i can find out from the list of transactions which transactions increased the balance, right?

pure jewel
#

Yes, each change to your balance has a correseponding Balance Transaction associated with it. But those Balance Transactions are not associated with any particular Event.

brittle dove
#

ok, so there is no direct way to figure this out

pure jewel
#

You can look at the Balance Transactions to figure it out.