#mandeep_api
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/1417787447290368073
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mandeep_api, 6 hours ago, 31 messages
- mandeep_api, 12 hours ago, 43 messages
π
Why not keeping a record in your database of the actual balance of the customer? and track/monitor it aligning with your use case
I could, but I feel like it'd become a bunch of work. e.g: credit grants should expire after a year, promotional free credits can be issued with varying expiry times. Later I'll probably want non-PAYG plans, which have different prices. etc
Felt like it'd be nice to take advantage of Stripe's billing ecosystem which I think make some of the aforementioned things easier in the future?
I mean you use Stripe billing, but just you keep a track on the credit balance of the customer depending on your own logic
that means I need to reimplement similar logic as stripe uses to calculate credit deductions right? (ie: when meter events happen, lookup user's pricing, compute how much balance should change by, and presumably maintain a ledger of credit balance updates in my DB)
not sure if we're thinking of something different?
with the above approach though, it seems like I'd not want to opt into stripe's billing functionality for usage metering, as my backend and stripe's calculations could fall out of sync?
my backend and stripe's calculations could fall out of sync?
Yeah agreed there is that risk
let me double check with one of my colleagues if there is a workaround or another solution
Will be back shortly
This issue will require an in-depth investigation from our team.
Hello @lean perch, we have sent you a direct message, please check it at https://discord.com/channels/@me/1417810079993958451
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.
Will reach out, thanks!