-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Configure PayPal IPN
- Enable your IPN https://yoursite.com/plugin/PayPalYPT/ipn.php
You can buy our commercial plugins here https://www.youphptube.com/plugins/
If you are not sure how to install plugins, please read this https://github.com/DanielnetoDotCom/YouPHPTube/wiki/How-To-Install-a-new-Plugin
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.
You have a few options to reach the subscription page
- One subscription button will be displayed on the top bar (You can customize the button label on the plugin parameter)
- If a user does not have access to a video (he is not on the video group), the user will be directed to the subscription page.
On the subscription page, the user will see a list of available plans.
The amount used to pay the plans will be off the balance of the user wallet if the available balance is not enough to pay the subscription you will be redirected to the PayPal page to complete the difference.
The deducted value will be transferred to the user with ID specified in the plugin parameters


