Answer the question
In order to leave comments, you need to log in
How to correctly implement a subscription?
I want to implement a subscription on my site. If you have a subscription, then you will have access to some paid resources. The subscription is available in the form of several packages, such as - 2 weeks, a month, 3 months, half a year and a year. For resources, there is such a field in the database, called is_paid, with which I will check whether it is necessary to check whether the user has a subscription or not.
Tell me, please, what tables should I create, what fields should be, what verification logic should be, and most importantly, how exactly to implement it correctly? To avoid any bugs in the future.
What do you think, is it worth it to allow buying multiple subscriptions or is it a stupid idea? Somewhere I saw what it was.
Thanks to!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question