Learn how to set up webhooks in Razorpay to capture payment details seamlessly using Pabbly Connect in this step-by-step tutorial. Eliminate manual repetitive tasks from your workflow. Discover proven automation methods with intuitive steps designed for efficiency-minded professionals.

Watch Step By Step Video Tutorial Below


1. Access Pabbly Connect for Integration

To set up webhooks in Razorpay for capturing payment details, start by accessing Pabbly Connect. Open your browser and navigate to the Pabbly Connect website.

Once there, you can create a free account by clicking on ‘Sign Up Free’. If you already have an account, simply click on ‘Sign In’. After signing in, you will reach the dashboard where you can begin creating your workflow.


2. Create a Workflow in Pabbly Connect

After accessing the Pabbly Connect dashboard, click on ‘Create Workflow’ to initiate the setup process. You will need to name your workflow; for example, ‘Razorpay to WhatsApp’.

In this workflow, you will see two windows: the trigger window and the action window. The trigger window is where you will set up the event that starts the automation, while the action window defines what happens after the trigger event occurs.

  • Click on ‘Access Now’ for Pabbly Connect.
  • Create a new workflow and name it accordingly.
  • Set up the trigger event to capture payment details.

This setup will allow you to receive payment details from Razorpay through Pabbly Connect whenever a payment is captured.


3. Set Up Webhook URL in Razorpay

To capture payment details, you need to set up a webhook URL in your Razorpay account. In the trigger window of Pabbly Connect, select Razorpay as the app and choose the trigger event ‘Payment Captured’.

Once selected, Pabbly Connect will provide you with a webhook URL. Copy this URL as you will need to paste it into your Razorpay settings.

  • Log in to your Razorpay account and go to ‘Settings’.
  • Select ‘Webhooks’ and click on ‘Add New Webhook’.
  • Paste the copied webhook URL and set the active event to ‘payment.captured’.

After saving the settings, your Razorpay account will be connected to Pabbly Connect, allowing it to send payment details whenever a payment is captured.


4. Test the Integration with a Payment

With the webhook URL set up, you can now test the integration. Go back to Pabbly Connect and initiate a test payment on your Razorpay payment page to see if the details are captured.

Once the payment is made, Pabbly Connect will display the received data in the workflow. This confirms that the integration is working correctly and that payment details are being captured as intended.

Make a test payment using a dummy card. Check Pabbly Connect for the captured payment details. Ensure that the payment data is displayed correctly.

This step is crucial to ensure that everything is functioning smoothly before moving on to the next part of the automation.


5. Send WhatsApp Message on Payment Capture

Now that you have successfully captured payment details, you can automate sending a WhatsApp message to the customer. In the action window of Pabbly Connect, select the WhatsApp Cloud API as the action app.

Choose the action event ‘Send Template Message’ and connect your WhatsApp account. You will need to provide the necessary details such as the template name and the recipient’s mobile number, which should be mapped from the payment details received.

Select the template you created for payment updates. Map the customer’s name and payment amount into the template. Test the WhatsApp message to ensure it sends correctly.

This final step will ensure that customers receive immediate confirmation of their payment via WhatsApp, enhancing their experience and keeping them informed.


Conclusion

In this tutorial, we demonstrated how to set up webhooks in Razorpay to capture payment details using Pabbly Connect. By following these steps, you can automate the process of notifying customers through WhatsApp whenever a payment is made, ensuring timely communication and improved customer satisfaction.

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