-
Notifications
You must be signed in to change notification settings - Fork 982
Subscription Plugin
With this plugin, you can create plans for your users to be dynamically included in groups for a specific time.
For example: On your site, you can create a group of users called "Private" and add the videos that you want to be private in this group. So, only users who are associated with this group can view the videos.
So you do not have to manually add and remove users to these groups we created this plugin.
With the Subscription plugin, you can create plans, add a value to it and inform how long users who join it will continue.
One detail is that when the time expires the user may pay again for the subscription to renew.
The steps for building your subscription are as follows:
- In the left menu click on plugins
- Enable the following plugins
- Subscription (Commercial)
- YPTWallet (Free)
- PayPalYPT (Free)
- Enable your PayPal API
- Go to Paypal developer Website here https://developer.paypal.com/developer/applications (you must have Paypal account, of course)
- Click on Create App on the right side of the page
- Choose the name of your app and click Create App
- Now you can see and manage everything including client ID and secret.
- Make sure that the "enablePlugin_YPTWalletPayPal" parameter is enabled inside your YPTWallet
- Make sure you have user groups created
Click the "Edit" button in the "Subscription" and you will find 2 tabs, the first tab lists all your subscriptions, in the second tab is where you will create your plans.
Fill in the information and select the groups that you want this plan to include the user.
After creating the groups they will be available for use.
The videos that your user does not have access to will be directed to the subscription page.
On this page, you will see a list of available plans.
The amount used will be off the balance of your wallet if the available balance is not enough to pay the subscription you will be redirected to the PayPal page to complete the difference.