They have to have an account prior to payment so that moodle knows who to enrol in the course. You might look at putting a Joomla site on the frontend and use the Joomdle plugin. This would allow you to have a store that lists the courses and prices etc and payment stuff.
Authentication
How site is displayed to non registered users
This discussion has been locked so you can no longer reply to it.