#durrell-issuing-balance

1 messages · Page 1 of 1 (latest)

cold quiverBOT
fallen mason
#

durrell-issuing-balance

#

Hello! I don't know much about this so let me figure out how this works

eager badge
#

If we have to calculate the pending balance ourselves it seems like we would also have to take into account the money on it's way into the Issuing balance.

fallen mason
#

Yeah I can't seem to find anything about this I'm sorry. You're going to have to talk to our support team to dig further into this. You can contact them at https://support.stripe.com/contact

#

My guess is that mostly all the "pending" authorizations and such will just decrease your available balance as needed but I'm not familiar enough with this flow

eager badge
#

Yeah it looked to me like the the "pending" authorizations and such will just decrease your available balance as needed.

I'm wondering if something this would work to get the money going in:
```
pending_topups = Stripe::Topup.list({ status: :pending }, { stripe_account: object.stripe_account_id })
pending_issuing_topups = pending_topups.select { |topup| topup["destination_balance"] == "issuing" }
pending_issuing_topups.sum { |topup| topup["amount"] }

and to get the money on it's way out: 

pending_balance_transactions = Stripe::BalanceTransaction.list({ status: :pending }, { stripe_account: object.stripe_account_id })
pending_balance_transactions.sum { |balance_transaction| balance_transaction["amount"] }

fallen mason
#

yeah not sure honestly sorry.

eager badge
#

ok no worries. I appreciate all your help.

#

Just to check my sanity, you didn't see the issuing[pending] either in live mode right?

fallen mason
#

no I don't think that exists