#christianairwallet_best-practices
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1379447755499503709
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
What is your goal here, to maintain a balance balance via top ups?
How often is balance_available evaluated?
I don't think there's a specific schedule for this, but rather its event based driven by other actions that impact your balance
ie, a payout would reduce your available balance and a pending payment could become available increasing it
We want to build a 'Stripe workflow' that ensures our currency balances always has a minimum amount on them, to prevent 'paused' transfers. We're doing a Platform+Connect setup with separate charges and transfers.
How frequently are events updating balance_available? We’re concerned that if it updates very frequently (e.g. every minute), the workflow could trigger multiple times in a short period — each time initiating a new charge, even though previous charges are still pending.
This could result in multiple overlapping charges being created unintentionally.
if there are multiple events which affect your balance in that window yes it could fire repeatedly.
Ok, are there any other ways of creating the workflow to prohibit this from happening?
however you also have the pending balance condition, so if you had a payment pending that put your pending balance over that i would expect the condition to fail
I'd expect your pending condition should avoid a runaway process here, right?
Are you observing in tests that this is not working like you expect?
Got the point, we'll test it out 👍
Hey i had a chance to review your workflow, one change i'd suggest is replacing "create a charge" with "create a topup" since your goal is topping up your balance
Hmm, since the Platform is based in the EU, I’m not sure this will be possible. As far as I know, the top-up functionality is part of Stripe Treasury, which is only available to platforms located in the US.