Hi everyone,
I am working on side project (SAAS) and want to implement following features:
- coupon/vouchers for users with some validity
- How to implement different plans like basic plan or free plan, PRO plan, Enterprise plan with each plan having its own pricing. (For payment integration I have explored Razorpay and Stripe) Also do I need to consider RBAC here?
I wanted to know are there any libraries already available for such features or need to implement it from scratch? Any pointers would be very helpful.
Thanks in Advance :)
This feels similar to my question
I will also like to hear what solutions exist, but until then I can elaborate on my first attempt -
After a very short hunt in Google I gave up and just implemented some no-sql DB doc structure to keep track per user:
It didn't take much to implement, however it does feel like a design burden - because now we probably want to expand the most basic solution and maybe change
nCreditsto a dictionary of different credits types. Also we probably want to keep track of the events of activation / purchase / expiration of vouchers and it can escalate quickly.My guess is that most products do implement this from scratch, and after an initial period with real users, it can be limited to a small enough scope and maintain a custom implementation that is tailored to the product.
We use Stripe and their tools for coupons and per-customer credits. They have a pretty decent system that accommodates percentage and currency value coupons, with expiry dates and max number of uses too.
I just checked it out looks good. Thanks a lot.