Moodle Plugins directory: PayPal | Moodle.org
PayPal
PayPal Availability Condition
With this plugin you can put a price in any course content and ask for a PayPal payment to allow access.
The person in charge to configure the enrolment method on the course will be able to configure the enrolment cost's value and currency.
The user will be able to pay in some other currency at PayPal website. The conversion rates will be calculated and applied by PayPal.
Install
- Put these files at moodle/availability/condition/paypal/
- You may use composer
- or git clone
- or download the latest version from https://github.com/danielneis/moodle-availability_paypal/archive/master.zip
- Log in your Moodle as Admin and go to "Notifications" page
- Follow the instructions to install the plugin
- You must set the "Return URL" at PayPal to https://YOURMOODLESITEADDRESS/availability/condition/paypal/ipn.php (this may conflict with Moodle's enrollment PayPal plugin, make sure you use separate apps if you use PayPal enrollment)
- You must activate the IPN at your PayPal account
- You must have HTTPS enabled and working on your Moodle site
Usage
This works like the PayPal enrol plugin, but instead of restricting the full course, you can restrict individual activities, resources or sections (and you can combine it with other availability conditions, for example, to exclude some group from paying using and "or" restriction set).
For each restriction you add, you can set a business email address, cost, currency, item name and item number.
Funding
The development of this plugin was funded by TRREE - TRAINING AND RESOURCES IN RESEARCH ETHICS EVALUATION - http://www.trree.org/
Dev Info
Please, report issues at: https://github.com/danielneis/moodle-availability_paypal/issues
Feel free to send pull requests at: https://github.com/danielneis/moodle-availability_paypal/pulls
I have a problem when I use the plugin on different sections of the same course. Even if I set different item name, item number and price, if I unlock one section, it automatically unlocks the others as well. For payments I use the same paypal account.
my version of moodle is 3.6.3 and I use version 11 (2020072100) of the plugin
I just made available a version that checks for the amount paid to be equal the cost defined.
It's not possible to set payment per theme.
If you want to manually add users to access the activity you should create a group, add the user as member, add a group restriction to the activity and configure to make a payment OR belong to group.
I'll check the issue with the sections and let you know.
Thanks for the update. That's great news.
Regards
Matt
I installed the paypal version for moodle 3.9 and the plugin is enabled but the settings are not visible in the plugins overview of Paypal.
Please let me know what I can do
ie.
The specific country gets the courses for free. Everyone else must pay for them.
thanks.
Looking at https://moodle.org/plugins/availability_paypal/stats you will find there are many 4.1+ sites having this plugin installed. I would expect it just work -- plugins in Moodle are generally forward compatible without issues.