Normally, clicking the button would have redirected you to the payment gateway. After which, you would be automatically enrolled in the course.
Checkout this course, to see how a course page looks after enrollment.