-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow any plan to have credits #941
Comments
|
Let's start with a very small PR that will foster my understanding of the problem and allow me to develop a more robust roadmap in the short-term future. In this issue, you mentioned, "We also need to alter how payment works to block by exact value who is limiting, if storage is the limit reached, the download should still work." I am of the firm belief that we should start there. |
yes that makes sense |
I propose the following design for the backend:
There will be a |
Describe the bug/issue
Our current payment system has 2 things, monthly plan and Pay as you go.
Pay as you go is tricky because the user consumes and pay later, this had in the past a big problem as someone didn't pay.
Also, this doesn't scale well, and big clients don't take us as price doesn't decrease with usage.
So we need a second system to replace pay as you go and allow any plan to use it: credit.
One user can buy credit for MAU, Storage or bandwidth separately.
They can buy by 100, 1000, 10000 etc we have to be able to set different package for each, with different price, as many as we want.
When user buys it, it credits his account.
When a user goes above its plan, he starts to use credit if he has, or he is blocked to using Capgo.
We also need to alter how payment works to block by exact value who is limiting, if storage is the limit reached, the download should still work.
We will stop the current system of Pay as you go, where you pay at the end.
A front should be done to see current credits, the user should be able to buy one - time or recurrent credits.
Credits should be valid for 1 year.
We need to store the history of credit usage and display it month by month, with a one-year period max.
Credit count should be done 4 times a day, not at the exact second.
Email event should be done the same way we do for plan usage to allow use configure emails ( making the email is out of scope)
I suggest to first create a plan here and discuss this plan before starting coding, with milestone we can merge on the way, a big PR is not acceptable, as it's too big change
The text was updated successfully, but these errors were encountered: