#durrell-issuing-balance
1 messages · Page 1 of 1 (latest)
durrell-issuing-balance
Hello! I don't know much about this so let me figure out how this works
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.
Okay so https://stripe.com/docs/issuing/funding/balance?locale=fr-CA#track-your-issuing-balance says issuing[pending] should be there but it's not in the docs. I wonder if it's a "secret feature" so I'm digging a bit
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
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"] }
yeah not sure honestly sorry.
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?
no I don't think that exists