M
M
mt. NATS2020-06-27 05:52:54
WordPress
mt. NATS, 2020-06-27 05:52:54

Who can recommend a plugin for implementing pay-per-view packages?

There is a need to implement additional information viewing packages on the site. The main essence is a real estate rental site, there are hidden data that are displayed after payment. At the moment, the user "buys" access separately for each entry. It is necessary to make sure that there is a package of views (such as cheaper than taking them separately). If there is an active package, then write off from the total number of requests...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mt. NATS, 2020-07-02
@Dimastik86

plugin that solves this problem

O
Orkhan Hasanli, 2020-06-27
@azerphoenix

mt. NATS ,

it's easier to cut your f-tion ...

if someone just suggested the logic

1) Write a payment gateway so that you can accept payment. It all depends on the API service.
2) Create a custom record type where you will store information about the user's payment, the date of payment and the time of payment, the user id, the period for which this service was purchased.
3) Create a new user role that you will assign to a user when they purchase a service.
4) Create a rubric or rubrics that are visible only to users who have such a role.
5) Create a WP Cron or just a CRON task that will check daily whether the paid service has expired (by the field where the payment date is stored) and, upon expiration, run a PHP script that will delete the role that you created for the specified user.
If the project is serious enough and the budget allows, then as an option -> frameworks. Yii2, Laravel, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question