What is your request about?
It was a good option, with monthly billing, based on hourly charges. But since 1.0, when we have dynamic billing, so this function can create a problem of negative balance.
Why?
User has 500 credits
Product costs 1000 credits, and has monthly billing
Product "Minimum Credits" is set to 500
If user creates server, system will take 1000 credits from him, to pay for a full month.
Now user has -500 credits
Branch
main
Solution idea
We should either remove this feature, or do validation so that the "Minimum Credits" cannot be less than the price of the product.
Also, we should remove "Min Credits To Make Server" from the settings, as this feature no longer makes sense.
CtrlPanel Logs
Additional Info
From discord development discussion (original message):
- Remove global min credits (From settings, controllers and database)
- Create validation, to prevent per products Min credits to be less than the product price (frontend and backend)
- Carefully migrate existing products Min credits
- If the current value was default -> set it to product price
- If the current value is less than the product price -> set it to the product price
- If the current value is greater or equals to the product price -> leave as it is
What is your request about?
It was a good option, with monthly billing, based on hourly charges. But since 1.0, when we have dynamic billing, so this function can create a problem of negative balance.
Why?
User has 500 credits
Product costs 1000 credits, and has monthly billing
Product "Minimum Credits" is set to 500
If user creates server, system will take 1000 credits from him, to pay for a full month.
Now user has -500 credits
Branch
main
Solution idea
We should either remove this feature, or do validation so that the "Minimum Credits" cannot be less than the price of the product.
Also, we should remove "Min Credits To Make Server" from the settings, as this feature no longer makes sense.
CtrlPanel Logs
Additional Info
From discord development discussion (original message):