J
J
Jedi2019-03-03 03:23:54
PHP
Jedi, 2019-03-03 03:23:54

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

1 answer(s)
R
Roman, 2019-03-03
@procode

Judging by the questions, you need a ready-made engine. Best of all in the form of a plugin for some popular CMS.
https://hostenko.com/wpcafe/plugins/20-wordpress-m... Something like
that

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question