Let’s explore how you can integrate Instamojo with go4clic to enroll students automatically in the go4clic course upon receiving payment on Instamojo.
Our automation requires a one-time setup, for which we will use Pabbly Connect.
We will first link Instamojo with Pabbly Connect to capture successful payment details, then link Pabbly Connect with go4clic to create and enroll students in go4clic using the payment details.
Steps to Automatically Enroll Users in go4clic on Successful Intstamojo Payments
1. Sign In / Sign Up to Pabbly Connect and Create a Workflow
2. Establish a connection between Instamojo and Pabbly Connect
3. Setup go4clic as the Action App to Enroll Students
4. Add Text Formatter to the Workflow
5. Map the Necessary Fields
Step 1:- Sign In / Sign Up to Pabbly Connect and Create a Workflow
A. Sign In / Sign Up
To begin this process, visit Pabbly Connect and create your account by clicking on the ‘Sign Up Free’ button. You can also click on Sign In if you already have an account.
Click on the Pabbly Connect ‘Access Now’ button
B. Create Workflow
To create a new workflow, click the ‘Create Workflow’ button.
Name your workflow, and click on ‘Create’.
Step 2:- Establish a connection between Instamojo and Pabbly Connect
We will now look at the steps through which we can establish a link between Instamojo and Pabbly Connect. This will help us capture data for each successful payment.
A. Trigger App
Trigger allows us to choose the application that will receive the data for Pabbly Connect. In our case, it would be Instamojo.
Expand the Trigger Step, choose ‘Instamojo’ as your Action App, and select ‘New Sale’ as an Action Event.
B. Webhook URL
A new Webhook URL will get generated. You will use this Webhook URL to create a connection with your Instamojo account. Copy the Webhook URL.
As soon as you Copy the Webhook URL, Pabbly Connect will start looking to capture data from Instamojo, as indicated by the rotating Waiting For Webhook Response button.
C. Connect Instamojo Account
To connect with your Instamojo account, go to your Instamojo dashboard and click on ‘Products’ > ‘All Products’.
Select the Product for which you want to collect the payment.
Click on ‘Advanced’, paste the Webhook URL we copied earlier, and click on ‘Save’.
We have successfully generated a payment link and can use this link to collect payments. Using the Webhook URL, we have also established a connection between Instamojo and Pabbly Connect.
D. Test the Connection
You can now use this payment link to make a dummy transaction and check if your connection is successful or not.
Copy, paste, and open the payment link into an Incognito Tab.
Fill up the payment form, and make the payment.
Switch back to Pabbly Connect, and expand Response Received. If the payment is successful, its status will be visible as such.
Step 3:- Setup go4clic as the Action App to Enroll Students
Action allows us to choose the application that will get executed by the workflow trigger.
Upon collecting payment, we essentially want to enroll users in go4clic. Thus, go4clic will be our Action App.
A. Action App
Choose ‘go4clic’ as the Action App, select ‘Enroll User’, and click on ‘Connect’.
B. Add New Connection
To connect with your go4clic account, select ‘Add New Connection’. You will be asked to enter your API Key.
Login to your go4clic account, click on ‘Integrations’, and copy the API Key.
Paste the API Key into its given field, and click on ‘Save’.
C. Map Necessary Fields
Now that you have connected your go4clic account, all you need is to map the necessary details from the step above. Mapping ensures our data remains dynamic and changes as per the received responses.
Go to your go4clic dashboard, select the course where you want to enroll the students, copy the Course ID from the URL, and paste it into its given field.
Step 4:- Add Text Formatter to the Workflow
Go4clic requires us to enter First Name and Last Name in separate fields. But the data we fetched from Instamojo has a Full Name. To split the full name into two different fields, we need to add a Text Formatter to our workflow.
Add an Action Step between the two steps by clicking the ‘+’ button.
Choose ‘Text Formatter by Pabbly’ as your Action App, select ‘Split Text’ as an Action Event, and click on ‘Connect’.
In Text to Split Field, map the Full Name from the step above.
Enter ‘{{space}}’ as your Separator to split the text on either side of the space.
To retain the entire data on either side of the space, select ‘All’ as the Segment Index, and click ‘Save And Send Test Request’.
Full Name is now split into two separate parts.
Step 5:- Map the Necessary Fields
Reauthorize the connection by clicking on ‘Connected’ > ‘Save’.
Map both First and Last Names from above, and click on ‘Save & Send Test Request’.
As soon as you click on Save & Send Test Request, the user will get enrolled in the particular course of your choice.
Our automation is complete. We have successfully integrated Instamojo with go4clic. Each new user who makes a successful payment on Instamojo will now automatically be enrolled in your go4clic course.
You can copy this entire workflow by clicking this link.
Sign Up for a free Pabbly Connect account, and start automating your business
Subscribe to our Youtube Channel for more such automation
For any other queries, visit our forum