I was recently approached by a company who wanted to sell courses directly from Moodle. Once the student has paid for the course, they should immediately be given access to the course.
They had previously worked with another vendor who tried doing this with Drupal and Ubercart, but were unsuccessful.
I have for now kept the landing page of the shopping cart pretty basic (for now). Clicking on the menu on the left will filter the available courses. The star rating is the same one available from the Moodle plugins directory. It says it’s only available for Moodle 2.5, but I have it working in Moodle 2.8 – so there’s some handy info as well.
The shopping cart is hooked to a popular payment gateway in South Africa that handles the transaction. Upon success of the transaction, the student is enrolled in the course.
shopping cart homepage
In the video below I run through the process of making a purchase and accessing the course.