Enrolling student for course with paypal payment
-
Hi I have looked at the questions on this forum dealing with paypal payment gateways and am none the wiser, to be honest, hence this query.
What I want to do is to have a student click on a course, be taken to paypal, when they have paid to be redirected to the course page with access to the lessons on the course. Is this possible with namaste?
So far I have tried with the paypal sandbox but still getting inconsistent results. I have tried both with self-enrollment ticked and also with manual enrollment by admin. I have the shortcode for the “Click to enrol” button embedded on the page.
The payment is fine – I can get the paypal gateway to complete the payment and return to the course page. But the enrollment does not work. The “Click to enroll” button is still there (it has not changed to “enrolled”) and the “wp_namaste_student_courses” table has not been updated to show that the student is enrolled.
Is that because I am using the paypal sandbox (I have changed the action script for the paypal form in file “course_pay.php” from “https://www.paypal.com/cgi-bin/webscr” to “https://www.sandbox.paypal.com/cgi-bin/webscr”)?
Or is it simply a matter of getting the paypal response back and then updating the “wp_namaste_student_courses” table myself?
Or is there something else that I am missing?
Any advice much appreciated –
Best
Bis
- The topic ‘Enrolling student for course with paypal payment’ is closed to new replies.