Enrolment fails
- Fernando Acedo
- Topic Author
- Offline
- Elite Member
-
Less
More
14 years 2 months ago #1
by Fernando Acedo
Enrolment fails was created by Fernando Acedo
Hi all
I have installed:
- Joomla 1.5.25
- Virtuemart 1.1.9
- moodle 2.2
- joomdle 0.7
I configurated all the scripts to run together and moodle/joomla synchonizes well. I can see the users in moodle and the courses in Joomla. The System Check is OK.
When I buy the course, the process works fine. I receive an email with the purchase order. Then I receive an email with the Status of your Order has been changed to Confirmed.
And finally an email with the download info ?? Something like:
After receive all these email, the user is not enroled in the selected course.
- I tested it with and without Paypal sandbox.
- I modified the notify URL to $notify_url = SECUREURL ."administrator/components/com_joomdle/paypal_notify.php";
- The Paypal module in Virtuemart is patched because is showed pending status after payment. Now works fine.
- I tested with several courses. In moodle the Joomdle enrolment is activated.
Any help about why can't be enroled the students in the courses ?
Thanks in advance
I have installed:
- Joomla 1.5.25
- Virtuemart 1.1.9
- moodle 2.2
- joomdle 0.7
I configurated all the scripts to run together and moodle/joomla synchonizes well. I can see the users in moodle and the courses in Joomla. The System Check is OK.
When I buy the course, the process works fine. I receive an email with the purchase order. Then I receive an email with the Status of your Order has been changed to Confirmed.
And finally an email with the download info ?? Something like:
the file(s) you ordered are ready for your download.
Please enter the following Download-ID(s) in our Downloads Area:
file.html: 1c5661100df27a6afc14aa85128d6e10
After receive all these email, the user is not enroled in the selected course.
- I tested it with and without Paypal sandbox.
- I modified the notify URL to $notify_url = SECUREURL ."administrator/components/com_joomdle/paypal_notify.php";
- The Paypal module in Virtuemart is patched because is showed pending status after payment. Now works fine.
- I tested with several courses. In moodle the Joomdle enrolment is activated.
Any help about why can't be enroled the students in the courses ?
Thanks in advance
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
14 years 2 months ago #2
by Antonio Durán
Replied by Antonio Durán on topic Re: Enrolment fails
> The Paypal module in Virtuemart is patched because is showed pending status after payment. Now works fine.
If you needed to do this, it's normal that Joomdle doe snot work.
If VM does not confirm order after payment, you have problems in you Paypal configuration.
If you needed to do this, it's normal that Joomdle doe snot work.
If VM does not confirm order after payment, you have problems in you Paypal configuration.
Please Log in or Create an account to join the conversation.
- Fernando Acedo
- Topic Author
- Offline
- Elite Member
-
14 years 2 months ago #3
by Fernando Acedo
Replied by Fernando Acedo on topic Re: Enrolment fails
We tried to use VM as a normal shop, without courses, and all the orders remains "Pending" after payment process.
Then we found a solution to patch the Paypal code in VM and now (products and courses) are confirmed after payment (see forum.b-planet.com/viewtopic.php?f=4&t=23 )
We get the email with the confirmation of the process. So VM with Paypal works fine. Checked in both sides.
The orders are processed correctly and they appear as "Confirmed" in VM:
While before the status were always "Pending"
My questions are:
- Why this confirmation email with the order processed don't enrol the student in the course? There are something I miss in the process ?
- Why the student receive and email with a download link (the download is a system file :ohmy: ) ? Is it mandatory to activate downloads in Virtuemart?
Thanks
Then we found a solution to patch the Paypal code in VM and now (products and courses) are confirmed after payment (see forum.b-planet.com/viewtopic.php?f=4&t=23 )
We get the email with the confirmation of the process. So VM with Paypal works fine. Checked in both sides.
The orders are processed correctly and they appear as "Confirmed" in VM:
Purchase Order
Order Information
Order Number: 22
Order Date: Thursday, 16 February 2012
Order Status: Confirmed
While before the status were always "Pending"
My questions are:
- Why this confirmation email with the order processed don't enrol the student in the course? There are something I miss in the process ?
- Why the student receive and email with a download link (the download is a system file :ohmy: ) ? Is it mandatory to activate downloads in Virtuemart?
Thanks
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
14 years 2 months ago #4
by Antonio Durán
Replied by Antonio Durán on topic Re: Enrolment fails
Joomdle requires that Paypal IPN is correctly working, which seems it's not working for you, so you patched VM.
As IPN Joomdle code is not executed, you are not enroled into the course, and receive a wrong email.
As IPN Joomdle code is not executed, you are not enroled into the course, and receive a wrong email.
Please Log in or Create an account to join the conversation.
- Fernando Acedo
- Topic Author
- Offline
- Elite Member
-
14 years 2 months ago #5
by Fernando Acedo
Replied by Fernando Acedo on topic Re: Enrolment fails
We solved the problem and is nothing related to Paypal and IPN. It works fine from the beginning.
If you activate: notify_url = SECUREURL ."administrator/components/com_joomdle/paypal_notify.php"; and use the Paypal Sandbox, the purchase process is finished as "Pending" bu VM and the user is never enroled.
Out of the Sandbox, it works fine.
If you want to use the sandbox without pending orders, then you need to patch Paypal.
So the problem is in the file paypal_notify.php.
By other hand, the My Courses module don't show the courses the user is enroled. At beginning we though was because the user was not enroled but after check the user is enroled, the module still fails.
If you activate: notify_url = SECUREURL ."administrator/components/com_joomdle/paypal_notify.php"; and use the Paypal Sandbox, the purchase process is finished as "Pending" bu VM and the user is never enroled.
Out of the Sandbox, it works fine.
If you want to use the sandbox without pending orders, then you need to patch Paypal.
So the problem is in the file paypal_notify.php.
By other hand, the My Courses module don't show the courses the user is enroled. At beginning we though was because the user was not enroled but after check the user is enroled, the module still fails.
Please Log in or Create an account to join the conversation.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7909
14 years 2 months ago #6
by Antonio Durán
Replied by Antonio Durán on topic Re: Enrolment fails
Paypal sandbox is working fine for me in VM and Joomdle: orders are auto-confirmed, so I don't know why/what you needed to change, but I am sure that change broke Joomdle integration.
My courses module is also working fine for me (and lots of other users), you check that you are really enroled into the courses.
My courses module is also working fine for me (and lots of other users), you check that you are really enroled into the courses.
Please Log in or Create an account to join the conversation.
- Fernando Acedo
- Topic Author
- Offline
- Elite Member
-
14 years 2 months ago #7
by Fernando Acedo
Replied by Fernando Acedo on topic Re: Enrolment fails
One of our test environments was working fine with the same scripts versions but Joomdle that used 0.6.
So we downgraded Joomdle 0.7 to 0.6 in the development site and now all is working fine. We can go to production after make several test with version 0.6 and any issue raised.
So we downgraded Joomdle 0.7 to 0.6 in the development site and now all is working fine. We can go to production after make several test with version 0.6 and any issue raised.
Please Log in or Create an account to join the conversation.