Learn how to automate student enrollment in OnlineCourseHost when payments are made via Razorpay using Pabbly Connect. Step-by-step tutorial included. Follow this definitive guide to creating powerful automated workflows with straightforward, efficiency-focused solutions that save valuable time.

Watch Step By Step Video Tutorial Below


1. Accessing Pabbly Connect for Integration

To begin the integration process, you need to access Pabbly Connect. Start by visiting the Pabbly website and signing in to your account. If you are a new user, you can sign up for a free plan which includes 100 free tasks.

Once logged in, navigate to the dashboard and click on Pabbly Connect. From here, you will create a new workflow specifically for enrolling students in OnlineCourseHost when an order is paid in Razorpay.


2. Creating a Workflow in Pabbly Connect

In this section, you will create a workflow by clicking on the Create Workflow button. You will be prompted to name your workflow, for example, ‘Enroll Student in OnlineCourseHost when Order is Paid in Razorpay’. This name will help you identify the workflow later.

After naming the workflow, you will set up the trigger event. Select Razorpay as your trigger application and choose Order Paid as the trigger event. This setup allows Pabbly Connect to initiate the workflow every time a payment is made through Razorpay.


3. Setting Up the Webhook in Razorpay

After setting the trigger, Pabbly Connect will provide you with a webhook URL. This URL acts as a bridge between Razorpay and Pabbly Connect, enabling data transfer. Copy this webhook URL and log into your Razorpay account.

In Razorpay, navigate to the Account and Settings section, then select Webhooks. Here, you will add a new webhook by pasting the copied URL and selecting the Order Paid event. Save the webhook to complete this step.


4. Testing the Integration with a Payment

To test the integration, you need to simulate a payment. Go to your Razorpay dashboard and create a payment page for the course you are integrating. Copy the payment link and open it in a new incognito window.

Fill in the required fields such as first name, last name, email, and phone number, then proceed to make the payment. Once the payment is successful, return to Pabbly Connect to check if the webhook received the payment data correctly. You should see the details of the payment, including the user’s information and order ID.


5. Enrolling the Student in OnlineCourseHost

Now that you have successfully received the payment data in Pabbly Connect, the next step is to enroll the student in OnlineCourseHost. For this, select OnlineCourseHost as the action application and choose the Enroll Student event.

You will need to connect your OnlineCourseHost account by entering the integration token found in the settings of your OnlineCourseHost account. After connecting, map the fields from the Razorpay data to the enrollment fields, such as first name, last name, email, and course ID. Finally, save and test the request to confirm that the student has been enrolled successfully.


Conclusion

In this tutorial, we demonstrated how to use Pabbly Connect to automate student enrollment in OnlineCourseHost whenever an order is paid in Razorpay. This integration streamlines the process, ensuring that students are enrolled instantly upon payment confirmation, enhancing the user experience.

Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.