#christianairwallet_best-practices

1 messages · Page 1 of 1 (latest)

soft orchidBOT
#

👋 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.

proven dome
#

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

hybrid ermine
hybrid ermine
proven dome
#

if there are multiple events which affect your balance in that window yes it could fire repeatedly.

hybrid ermine
#

Ok, are there any other ways of creating the workflow to prohibit this from happening?

proven dome
#

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?

hybrid ermine
#

Got the point, we'll test it out 👍

proven dome
#

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

soft orchidBOT
hybrid ermine
#

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.