The Paypal form (moodle/course/enrol.php?id=4) has a field that requests the enrollment key and a button labeled "Enroll me in this course."
If a student provides the key and clicks the button, he is promptly enrolled in the course without ever having to pay for it.
Is there a flag we need to set that would require that both key and payment be satisfied?
As an alternative, can we remove the button and process the enrollment key via the ipn.php page when the student returns from paypal?
Who writes these modules? I would have expected an elementary need such as this to have been built years ago.
The idea behind the key is to allow someone in who either paid through a non moodle method or who wasn't required to pay.
If you want, you could have a non-moodle paypal purchasing screen and then manually enroll the student into Moodle, of course that would be very time consuming if many students are expected to enroll.
Sandra
We use paypal as the payment processor. As earlier stated, this page also requires the enrollment key.
Here is the dilemma -
- If students have the key before paying, they can simply enter the key, this bypasses paypal and do not have to pay.
- If students do not have the key and attempt to pay, they are not allowed to pay, as they need the key.
I would have to make the key available to everyone so that students could enrol and pay. However, giving the key in advance means that anyone can get into the course without paying.
Or am I completely out to lunch on this one? Any ideas/feedback/comments appreciated
thanks
Ann-Marie
Hi, I sell a book with a unique code in each book. I can't figure out how to make that the enrollment key for the person wanting to login.
They buy the book and must come into Moodle to get the test questions.
Thanks for any help you can offer.
At least -that's the only way I can currently see to do it
I also need to be able to restrict who enrols on a course AND I want them to pay.
It seems that I can either allow any Tom, Dick or Harry on our Moodle site to pay with Payapl to enrol, OR I can restrict who enrols with an enrolment key, but then I can't get them to pay with Paypal.
This really isn't very satisfactory...
Any ideas out there?
Bump. I'd like to be able to have users use Paypal AND a group enrollment key (see https://docs.moodle.org/27/en/Enrolment_key#Setting_a_group_enrolment_key) to enroll in a course so they're automatically placed in a certain group within the course (to facilitate restricted access to activities in the course by group). Is this possible? Thanks.
Not possible as far as I know. I would think you might need to incorporate with some other site that would then handle the payment part or perhaps you could hide the course somehow until they were ready to enrol...