Watch Step By Step Video Tutorial Below
1. Setting Up Pabbly Connect for WhatsApp Integration
To recover failed payments, the first step is to set up Pabbly Connect. This platform will facilitate the integration between Razorpay and WhatsApp, allowing you to send automated messages.
Start by logging into your Pabbly Connect account. Click on “Create Workflow” and select “Create from Scratch.” Name the workflow as “Failed Payment Recovery WhatsApp Message” and choose the appropriate folder, such as “Razorpay Automation.” Click on “Create” to proceed.
2. Configuring the Trigger Application in Pabbly Connect
In this step, you will set Razorpay as the trigger application in Pabbly Connect. Since you want to send a WhatsApp message whenever a payment fails, select Razorpay as the trigger application.
Next, choose the event as “Payment Failure” and click on “Connect.” You will need to set up a webhook in Razorpay to capture this event. Follow these steps to do so:
- Copy the webhook URL provided by Pabbly Connect.
- Log into your Razorpay account and navigate to the “Developers” section.
- Click on “Webhooks” and select “Add Webhook.” Paste the copied URL.
- In the events section, choose “Payment Failed” and click on “Create Webhook.”
Now, return to Pabbly Connect to check if the webhook response is captured successfully. This indicates that the connection is set up correctly.
3. Setting Up Action to Send WhatsApp Messages
After configuring Razorpay as the trigger, the next step is to set WhatsApp as the action application in Pabbly Connect. Click on “Add Action” and select “Pabbly Chatflow” as the action application.
Choose the action event as “Send Text Message” and click on “Connect.” You will need to enter your API token from Pabbly Chatflow. To get this token, navigate to the settings in Pabbly Chatflow and copy the API token. Paste it into the respective field in Pabbly Connect.
4. Customizing the WhatsApp Message
With the action set up, you can now customize the WhatsApp message that will be sent. In the message field, you can include dynamic data from the Razorpay webhook response. For example, you can personalize the message with the customer’s name and payment details.
Make sure to map the fields correctly to ensure the message is sent with accurate information. Here’s how to format the message:
- Include the customer’s name in the greeting.
- Mention the amount that failed to process.
- Add a reminder to complete the payment.
After mapping the necessary details, save the action step in Pabbly Connect.
5. Testing the Integration
To ensure everything is set up correctly, it’s time to test the integration. Perform a test payment through Razorpay using dummy details that are configured to fail. This will trigger the workflow in Pabbly Connect.
Once the payment fails, check your WhatsApp for the message. You should receive a personalized message indicating the failure and prompting the customer to retry the payment. This confirms that the integration between Razorpay and WhatsApp via Pabbly Connect is functioning as intended.
Conclusion
In this tutorial, we explored how to recover failed payments by sending automated WhatsApp messages using Pabbly Connect. With this setup, you can streamline communication and improve customer experience by reminding them to complete their transactions.



