- Posts: 8
Not able to get Enrolled after Payment Using VM2.6
- Abhishek
- Topic Author
- Offline
- New Member
-
Less
More
11 years 9 months ago - 11 years 9 months ago #1
by Abhishek
Not able to get Enrolled after Payment Using VM2.6 was created by Abhishek
Joomla version - 2.5.22
Moodle - 2.2.11
Joomdle - 0.92
Virtuemart - 2.6.6
Thanks for making joomdle bridge, and keep it making better and better, I am already feeling that success is near for my new business startup, and as soon I succeed, I would certainly donate voluntarily to all open source teams bcos of whom, it became possible to integrate and setup my online learning portal.
Being optimistic is good,
but I am stuck with something small for last 4 nights, hope I would get some help here. All have been working fine except auto-enrolment, user is taken to the shopping cart and payment process after she/he clicks on 'buy course' button, but after payment the course is not assigned to the user. Payments are processed by CCAVENUE online payment service integrated with VM2.6,
more info:
what more I could try, please guide!
kind regards,
Abhishek
Moodle - 2.2.11
Joomdle - 0.92
Virtuemart - 2.6.6
Thanks for making joomdle bridge, and keep it making better and better, I am already feeling that success is near for my new business startup, and as soon I succeed, I would certainly donate voluntarily to all open source teams bcos of whom, it became possible to integrate and setup my online learning portal.
Being optimistic is good,
more info:
- joomdle vm2 plugin is enabled
- all courses created inside moodle are visible in VM2 via joomdle
- earlier i was using vm2 category for selling but then i realized that i should be using joomdle links for selling
- only two methods of enrolment are enabled for each course - Joomdle & Manual
what more I could try, please guide!
kind regards,
Abhishek
Last edit: 11 years 9 months ago by Abhishek.
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
11 years 9 months ago #2
by Chris
Replied by Chris on topic Not able to get Enrolled after Payment Using VM2.6
You said you were using vm2 category for selling then decided to use joomdle links. This I am a little confused by. You mean you stopped using VM to sell for you and instead you tried using the buy course button in joomdle?
Regardless, you should be able to buy directly from VM. Thus the joomdle course will appear in your VM cart along with any other items purchased. Ie Moodle courses just appear as any other VM product.
Did you use the joomdle category in VM? Or did you move the courses to another category? If you want the courses to appear in a different VM category make the courses multi-category as they need to be in the joomdle category to work properly.
Do the users get created in Moodle and just not enrolled?
Regardless, you should be able to buy directly from VM. Thus the joomdle course will appear in your VM cart along with any other items purchased. Ie Moodle courses just appear as any other VM product.
Did you use the joomdle category in VM? Or did you move the courses to another category? If you want the courses to appear in a different VM category make the courses multi-category as they need to be in the joomdle category to work properly.
Do the users get created in Moodle and just not enrolled?
Please Log in or Create an account to join the conversation.
- Abhishek
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
11 years 9 months ago - 11 years 9 months ago #3
by Abhishek
Replied by Abhishek on topic Not able to get Enrolled after Payment Using VM2.6
Hi Chris,
Initially I was selling courses using a slider based on VM2.6 category, all the courses in this slider were those published on Shop tab of the Joomdle, so Joomdle is able to bring all the courses from within moodle and publish them as products for VM2.6. (details in attached screenshot) In second attempt, I tried to use 'Buy Course' button just to make sure if selling products out of VM2.6 category is an issue. But it is same in both cases.
The VM2.6 category I am using to sell courses is number 10, and I have configured this category into joomdle configuration (details in attached screenshot). I tried this morning again, but same results:
I click on one of the course from VM2.6 category 10 --> It takes me to VM2.6 checkout page --> I click on shipment method - online access (which is just a dummy shipment, just for sake of its requirement in shopping process, bcos courses are to assigned only online, no physical products) ---> then next message says Confirm the purchase ---> I am taken to the third party payment gateway ---> i pay using card, paymen tis accepted, I am brought back to my website with thank you for purchase message --> I check in VM2.6 orders list, in front of user name it shows purchase 'CONFIRMED' but when I go to 'My Subjects' menu link user is not enrolled into the purchased course.
All this testing is done via another account which I have created just for testing, it is a basic account with permissions as registered user only.
User is created also inside moodle, I am able to enrol this user into courses manually, so the user was already a registered user before he attempted to purchase the course, anyways for this I have defined Virtuemart2 in additional data source in joomdle configuration, just in case it is fresh new user.
I think at the point where order is confirmed (vm2.6 recieves successful payment message by payment service) the trigger to enrol user into the course is not firing correctly, if you could identify which file I should check for this trigger I may research further.
website is : --> testclue .com
I have .htaccess and sh404SEF enabled for SEF management, this is probably not cause of the issue as the issue existed even before installing sh404SEF.
Initially I was selling courses using a slider based on VM2.6 category, all the courses in this slider were those published on Shop tab of the Joomdle, so Joomdle is able to bring all the courses from within moodle and publish them as products for VM2.6. (details in attached screenshot) In second attempt, I tried to use 'Buy Course' button just to make sure if selling products out of VM2.6 category is an issue. But it is same in both cases.
The VM2.6 category I am using to sell courses is number 10, and I have configured this category into joomdle configuration (details in attached screenshot). I tried this morning again, but same results:
I click on one of the course from VM2.6 category 10 --> It takes me to VM2.6 checkout page --> I click on shipment method - online access (which is just a dummy shipment, just for sake of its requirement in shopping process, bcos courses are to assigned only online, no physical products) ---> then next message says Confirm the purchase ---> I am taken to the third party payment gateway ---> i pay using card, paymen tis accepted, I am brought back to my website with thank you for purchase message --> I check in VM2.6 orders list, in front of user name it shows purchase 'CONFIRMED' but when I go to 'My Subjects' menu link user is not enrolled into the purchased course.
All this testing is done via another account which I have created just for testing, it is a basic account with permissions as registered user only.
User is created also inside moodle, I am able to enrol this user into courses manually, so the user was already a registered user before he attempted to purchase the course, anyways for this I have defined Virtuemart2 in additional data source in joomdle configuration, just in case it is fresh new user.
I think at the point where order is confirmed (vm2.6 recieves successful payment message by payment service) the trigger to enrol user into the course is not firing correctly, if you could identify which file I should check for this trigger I may research further.
website is : --> testclue .com
I have .htaccess and sh404SEF enabled for SEF management, this is probably not cause of the issue as the issue existed even before installing sh404SEF.
Last edit: 11 years 9 months ago by Abhishek.
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
11 years 9 months ago #4
by Chris
Replied by Chris on topic Not able to get Enrolled after Payment Using VM2.6
Please Log in or Create an account to join the conversation.
- Abhishek
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
11 years 9 months ago #5
by Abhishek
Replied by Abhishek on topic Not able to get Enrolled after Payment Using VM2.6
Hi Chris,
I checked that FAQ, I think issue in my case and for several others running around with similar problem is that we are probably using third party or custom made integration scripts to send, process & recieve the payment transactions (confirmations). And the checklist provided by Joomdle relates to people who are probably able to use standard.php method of vmpayments plugin.
To acheive payment processing with unlisted payment gateways custom made scripts are needed, I am trying create one now, for example I have request.php for sending product details to PG (payment gateway), and then after successful processing PG responds back and it is handled by response.php, in this response.php if I can introduce a URL for enrolling user with userid and courseid to the course she/he has purchased then the auto-enrol thing should work smooth.
Something like this:
if($order_status==="Success")
{
echo "<br>Thank you for shopping with us. Your credit card has been charged and your transaction is successful. We will be shipping your order to you soon.";
//script or url for enrolment - or possibly the self-enrol trigger to the courseid the user has purchased
}
Or I could be entirely wrong and Joomdle does not even care what custom made script (response.php) brings and directly looks for Order status in VM2.6 and on seeing Confirmed it assigns the course purchased by user, if this is so, then I still have no clue where to check for the issue.
They say - "where there is will, there is way", I have the will, just need your kind help to show me the way.
cheers,
Abhishek
I checked that FAQ, I think issue in my case and for several others running around with similar problem is that we are probably using third party or custom made integration scripts to send, process & recieve the payment transactions (confirmations). And the checklist provided by Joomdle relates to people who are probably able to use standard.php method of vmpayments plugin.
To acheive payment processing with unlisted payment gateways custom made scripts are needed, I am trying create one now, for example I have request.php for sending product details to PG (payment gateway), and then after successful processing PG responds back and it is handled by response.php, in this response.php if I can introduce a URL for enrolling user with userid and courseid to the course she/he has purchased then the auto-enrol thing should work smooth.
Something like this:
if($order_status==="Success")
{
echo "<br>Thank you for shopping with us. Your credit card has been charged and your transaction is successful. We will be shipping your order to you soon.";
//script or url for enrolment - or possibly the self-enrol trigger to the courseid the user has purchased
}
Or I could be entirely wrong and Joomdle does not even care what custom made script (response.php) brings and directly looks for Order status in VM2.6 and on seeing Confirmed it assigns the course purchased by user, if this is so, then I still have no clue where to check for the issue.
They say - "where there is will, there is way", I have the will, just need your kind help to show me the way.
cheers,
Abhishek
Please Log in or Create an account to join the conversation.
- Chris
-
- Offline
- Moderator
-
11 years 9 months ago #6
by Chris
Replied by Chris on topic Not able to get Enrolled after Payment Using VM2.6
In VM (1) you are correct that each script needed hacking. VM 2 is written such that there is separation between payment and post payment. When a successful payment is made (via any payment method) VM will next call all plugins that are written for post payment processing.
Thus far I am not aware of anybody having to do anything special to make it work. It has always been one of the items on the FAQ or a configuration option somewhere. Eg. costs in courses in moodle, using the correct VM category, setting up enrollment approach correctly in moodle, etc.
As for 3rd party integration with VM, I suppose it could be possible that something is interfering. You may wish to disable any 3rd party plugins that interrupt the normal VM process. You may also reorder any VM plugins to ensure that the Joomdle one is being executed in case you have installed another VM plugin that takes control and does not return to VM properly.
Thus far I am not aware of anybody having to do anything special to make it work. It has always been one of the items on the FAQ or a configuration option somewhere. Eg. costs in courses in moodle, using the correct VM category, setting up enrollment approach correctly in moodle, etc.
As for 3rd party integration with VM, I suppose it could be possible that something is interfering. You may wish to disable any 3rd party plugins that interrupt the normal VM process. You may also reorder any VM plugins to ensure that the Joomdle one is being executed in case you have installed another VM plugin that takes control and does not return to VM properly.
Please Log in or Create an account to join the conversation.
- Abhishek
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 8
11 years 9 months ago #7
by Abhishek
So, the cost in moodle and in front (VM2) should be same, is this what you mean? I have quite different costs setup in both, I am going to try this right now, will report back answers to forum.
thanks Chris,
Abhishek
Replied by Abhishek on topic Not able to get Enrolled after Payment Using VM2.6
Eg. costs in courses in moodle
So, the cost in moodle and in front (VM2) should be same, is this what you mean? I have quite different costs setup in both, I am going to try this right now, will report back answers to forum.
thanks Chris,
Abhishek
Please Log in or Create an account to join the conversation.