Learn how to upload failed Razorpay payments as events in CleverTap using Pabbly Connect. Follow our step-by-step guide for seamless integration. Build sophisticated automated workflows in less time than you think. This guide translates complex integrations into straightforward steps for immediate implementation.

Watch Step By Step Video Tutorial Below


1. Getting Started with Pabbly Connect for Razorpay and CleverTap Integration

To automate the process of uploading failed Razorpay payments as events in CleverTap, you will first need to access Pabbly Connect. This powerful automation platform allows you to seamlessly integrate different applications, including Razorpay and CleverTap.

Begin by creating a free account on Pabbly Connect. You can find the sign-up link in the description below. Once you have your account set up, log in to the dashboard where you will create a new workflow for this integration.


2. Creating a Workflow in Pabbly Connect

After logging into Pabbly Connect, click on the ‘Create Workflow’ button. Name your workflow something descriptive, like ‘Razorpay to CleverTap’. You can also select a folder to organize your workflows.

In this workflow, you will have a trigger and an action. The trigger will be a failed payment from Razorpay, and the action will be to upload that event to CleverTap. Follow these steps to set it up:

  • Click on the ‘Create Workflow’ button.
  • Name your workflow (e.g., ‘Razorpay to CleverTap’).
  • Select a folder for organization.

Once your workflow is created, you will see the trigger window where you will connect Razorpay.


3. Setting Up the Trigger for Razorpay

In the trigger window, search for Razorpay and select it as your app. Choose ‘Payment Failed’ as the trigger event. Pabbly Connect will provide you with a webhook URL that you will use to connect Razorpay to this workflow.

Copy the webhook URL and navigate to your Razorpay account. In Razorpay, go to ‘Accounts and Settings’ and then select ‘Webhooks’. Click on ‘Add New Webhook’ and paste the webhook URL. For the active event, select ‘Payment Failed’.

  • Go to Razorpay > Accounts and Settings > Webhooks.
  • Click on ‘Add New Webhook’.
  • Paste the webhook URL and select ‘Payment Failed’.

After setting this up, Pabbly Connect will be waiting for a webhook response from Razorpay, indicating a failed payment.


4. Testing the Trigger in Pabbly Connect

To test whether the trigger is working, initiate a test payment on your Razorpay payment page. Enter dummy details that will result in a failed payment. Once the payment fails, Pabbly Connect will capture the response containing all relevant details about the failed payment.

In the Pabbly Connect workflow, you will see the details of the failed payment, including the status, order ID, customer name, email, and product name. This confirms that the trigger has successfully captured the failed payment event.

Initiate a test payment that fails. Check Pabbly Connect for the captured response. Verify that all details are present in the response.

This step is crucial as it ensures that Pabbly Connect is receiving data from Razorpay correctly before moving on to the action step.


5. Uploading Failed Payment Event to CleverTap

Now that you have successfully set up the trigger, it’s time to configure the action step. In the action window, search for CleverTap and select it. Choose the action event as ‘Upload Event’. This will allow you to send the captured data from Razorpay to CleverTap.

To connect CleverTap with Pabbly Connect, you will need your CleverTap Project ID and Passcode. You can find these in your CleverTap account settings. Enter these details in Pabbly Connect and select your account region.

Select CleverTap and choose ‘Upload Event’ as the action. Enter the Project ID and Passcode from CleverTap. Select the appropriate region for your CleverTap account.

Once connected, map the required fields from the Razorpay response to the CleverTap event. Finally, click on ‘Save and Send Test Request’ to verify that the event is uploaded successfully. You can check your CleverTap account to see the newly created event.


Conclusion

By following these steps, you can effectively automate the process of uploading failed Razorpay payments as events in CleverTap using Pabbly Connect. This integration not only streamlines your payment management but also enhances user engagement by tracking payment failures efficiently. Start using Pabbly Connect today to simplify your workflow!

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