Create a plugin to integrate WP to Moodle with Single Sign-On:
1. Student signs up on WP site and logs in.
2. Student clicks course on WP site.
3. Student pays via Stripe or PayPal or Credit/Debit card.
4. Students get enrolled automatically into that course in Moodle and does the course.