How much trouble would it be to customize the Paypal plugin in order to apply it at the activity level?
My use case is the following: Giving free access to a Course and a number of Activities therein but request a charge/purchase to access a single Activity, e.g. course certificate, the latter being conditional to the successful completion of other Course Activities (through Moodle conditional system).
I have the strong feeling that this is a feature that can be used by others as well:
https://moodle.org/mod/forum/discuss.php?d=170724
https://moodle.org/mod/forum/discuss.php?d=168139
https://moodle.org/mod/forum/discuss.php?d=216559
https://moodle.org/mod/forum/discuss.php?d=271220
Don't give me the "it's impossible" answer because I know it's not. I might be able to find funding for this feature depending on the amount of work that is required.
I thank you in advance for your support.
Seb
p.s. let me know if I should have posted this on the Developer forum.
It would definitely be complicated since moodle does not support that feature. Unless you are willing to finance this I doubt anything will happen.
Like anything in the programming world, its possible if you have enough time/money to make it. So sure you could do this. You would probably build something around Moodle's conditional access features.
But for better or worse, the atomic unit in Moodle is courses when it comes to paid access. Unless you really can't compromise, my advice is to take some time to figure out how to use Moodle course completion, activity completion and enrolment plugins (probably Paypal enrolment) to achieve your goal. Thats what others do, so it certainly can be done and is not impossible either.
I'm not a developer, but agree with others here, that it sound very difficult.
I would take a different approach.
You can put a Certificate in a different course, using previous course completion dependency if required, and then have PayPal on the Certificate course, with the first course remaining free.
Although this is creating an additional course, you could use this type of approach, and have it working in less than an hour, which sounds a lot more cost-effective than the coding required to make an activity an 'enrollable' entity !
Re: Paypal for specific Activities within a Course
Hello,
i am a Moodle developer and this is easy to do =)
I was planning to do this on a not so far future.
Also, i will implement a patch to the current enrol plugin that let you configure one email per instance instead of a global one.
If you want more, we can also take a look at how Paypal handle multiple payments and add this to both plugins.
What do you say?
Kind regards,
Daniel
(Edited by Howard Miller, removing part about funding at poster's request - original submission Monday, 6 April 2015, 2:42 PM)
I apologize for delay & I thank you all for your suggestions.
@Stuart: I had thought of this but I don't like the idea of creating dummy courses for the only purpose of delivering certificates, as this would become burdensome in the long run.
@Daniel, I will contact you by PM. I am willing to fund this feature as I am sure it would be appreciated by the community.
Regards,
Seb
Hello, everybody
I've made available a first beta version of the PayPal activity module.
https://github.com/danielneis/moodle-mod_paypal
Hope that you like.
Kind regards,
Daniel
This plugin is a standalone Paypal activity module, i.e., you may use it to unlock other activities in a course in the Restricting access options. This offers more flexibility than the core enrol Paypal feature as you can open a course to the general public but restrict access to some of the content therein.
This works great if you want to unlock a bunch of activities in a course at once. However, Daniel is already working on an improved feature, by adding Paypal as an availability condition for any type of activity. I am convinced that this will be a great addition to Moodle and a great asset for the Moodle community. Some of us must raise money to get the proper resources for creating and ensuring the highest quality of our training programs/material. The first beta version of the Paypal availability feature is available here and open for testing and comments:
https://github.com/danielneis/moodle-availability_paypal
This is the first project I am doing with Daniel and I must say he is a very good developer.
Cheers,
Sebastien
Hi, Sebastien and Daniel.
Thanks for the contribution! This seems to be definitely what I'm looking for in a project. Which moodle versions are compatible with the module? I tried to run it on 2.4 and it throws the following error:
Debug info: Missing version value in version.php
Error code: detectedbrokenplugin
Thanks a lot in advance!
Eder
Re: Paypal for specific Activities within a Course
Hello,
as Availability Conditions Plugins were introduced only in Moodle 2.7 release, this plugin will not be supported for earlier versions.
https://docs.moodle.org/dev/Availability_conditions
Please, update your Moodle site as 2.4 release will complete 4 years old ;)
Kind regards,
Daniel
Paypal enrollment is built into core moodle. Just enable it and then follow instructions for setting it up. I have no idea what you mean by "availability condition"?
Re: Paypal for specific Activities within a Course
Availability Conditions are the "options" to "Restrict access"
https://docs.moodle.org/33/en/Restrict_access
Here is the paypal plugin:
Thanks for the reply. Yes.. I have seen the "Availability conditions" Paypal plugin. But I need the enrollment plugin for Paypal which was available before. Is there any way to get the same?