We need to do this way
1) create a course in courses and make it protected.
2) Allow pay per post for the course and then enable free registration.
3) When we enable free registration a link is displayed. We can use that link to ask users to use for free registration.
 Check screenshot how we can get free registration link