VCS payments
From Joomdle
Wobble has sponsored the development of a Virtuemart patch to allow using VCS Payment Gateway with Joomdle.
With it, when a course purchase is made in Virtuemart with the VCS payment method, the user is automatically enrolled in the relevant Moodle courses.
To use it, first install the normal VCS plugin, and make sure it is working correctly for normal products.
Then, download this file and place it in '/administrator/components/com_virtuemart/html/'.
Then, you will need to modify the payment plugin configuration in Virtuemart. In Extra Info section, look for:
<input type="hidden" name="osApprovedUrl" value="<?php $sess->purl(SECUREURL."index.php?page=checkout.vcs&order_id=". $order_id) ?>" />
And change by:
<input type="hidden" name="osApprovedUrl" value="<?php $sess->purl(SECUREURL."index.php?page=checkout.vcs.joomdle&order_id=". $order_id) ?>" />