#evan_best-practices

1 messages ¡ Page 1 of 1 (latest)

rigid totemBOT
#

👋 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/1443385245788409899

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

lapis burrow
#

Hi there!

#

Could you describe in a little more detail what you want to do? What is the evaluation you need to make at the end of a billing cycle, and are you using a usage-based price, which I would assume from the question?

visual elm
#

Currently we reset paying users on the invoice paid event, however users on the free tier don't have invoice paid events, and thus can't be reset

#

(that doeesn't answer your question)

lapis burrow
#

So you're looking at a reliable way to identify the end of the billing cycle and reset their credits?

#

for unpaid subscriptions?

visual elm
#

we currently don't make subscriptions in stripe for the "free" plan (maybe we should?)
because of that, we're essentially trying to create a "plan end" field for each user to update when that free plan should be reset
it'd be best practice to have that free plan end based on what stripe considers a billing cycle to be, rather than say every 31 days
however it's not clear what logic is needed to match stripe's billing cycle

rigid totemBOT
grizzled isle
#

Hi! Stepping in for my colleague. Give me a while to catch up!

#

By free plan, can I assume it is a sort of trial period? Additionally you mentioned it'd be best practice to have that free plan end based on what stripe considers a billing cycle to be. Do you not already have a billing cycle on your local version?

visual elm
#

Do you not already have a billing cycle on your local version?
Currently no, it's a very new product.
By free plan, can I assume it is a sort of trial period?
The "trial" is essentially giving users a much smaller amount of "expiring" credits per month.