Learn how to automate WhatsApp messages for failed Razorpay payments using Pabbly Connect. This step-by-step guide simplifies the integration process. Learn to create powerful connections between your critical applications without requiring specialized programming knowledge or extensive technical background.

Watch Step By Step Video Tutorial Below


1. Setting Up Pabbly Connect for Razorpay Integration

To send WhatsApp messages for failed Razorpay payments, first, access Pabbly Connect. This integration tool allows you to automate workflows easily. Start by signing up for a free account on the Pabbly website, where you can create your first workflow without any coding.

Once logged in, navigate to the dashboard and click on the ‘Create Workflow’ button. You will be prompted to name your workflow. After naming it, click on the ‘Create’ button to proceed. This will take you to the workflow setup page, where you can define your trigger and actions.


2. Configuring the Trigger for Failed Payments

The next step involves setting up the trigger in Pabbly Connect. Click on the trigger window and search for Razorpay. Select Razorpay as the trigger application and choose the event ‘Payment Failed’. This event will initiate the workflow whenever a payment fails.

  • Select Razorpay as the trigger application.
  • Choose the trigger event ‘Payment Failed’.
  • Copy the Webhook URL provided by Pabbly Connect.

After copying the Webhook URL, go to your Razorpay dashboard. Under the settings, find the Webhooks section and click on ‘Add New Webhook’. Paste the copied URL and select the event ‘Payment Failed’. This will ensure Razorpay sends payment failure data to your Pabbly Connect workflow.


3. Testing the Payment Failure Trigger

To test the setup, create a test payment in Razorpay. Fill in the required details and deliberately cancel the payment to trigger a failure. This action will send data back to Pabbly Connect, confirming that the integration is working correctly.

Once the payment is canceled, return to Pabbly Connect and check if the data from the failed payment appears in the workflow. You should see details like the customer’s name, email, and the amount of the failed transaction. This confirms that the trigger is functioning as intended.


4. Formatting the Payment Amount

In the previous step, you might notice that the payment amount is displayed incorrectly due to formatting issues. To rectify this, use the ‘Number Formatter’ feature in Pabbly Connect. Select the action event ‘Perform Math Operation’ to divide the amount by 100, correcting the value.

  • Choose ‘Number Formatter’ as the action application.
  • Select the operation ‘Divide’ and input 100.
  • Map the amount from the Razorpay trigger step.

After this setup, click on ‘Save and Send Test Request’ to check if the amount is now displayed correctly. This step is crucial for ensuring that the WhatsApp message will contain accurate payment information.


5. Sending WhatsApp Messages Using Interakt

Now that you have the payment failure data formatted correctly, it’s time to send a WhatsApp message. Add a new action in Pabbly Connect and select Interakt as the application to send messages. Choose the action event ‘Send WhatsApp Message’.

Connect your Interakt account by entering the API key obtained from the Interakt developer settings. Map the necessary fields, such as the recipient’s phone number and the message template you created for failed payments. Make sure to include dynamic variables for personalization.

Map the recipient’s phone number with the country code. Input the message template code and language. Test the message to ensure delivery.

After configuring these settings, click on ‘Save and Send Test Request’ to verify that the WhatsApp message is sent successfully. You should receive a message confirming the payment failure, personalized with the customer’s details.


Conclusion

By following these steps, you can effectively automate WhatsApp notifications for failed Razorpay payments using Pabbly Connect. This integration not only enhances customer communication but also improves your chances of recovering lost sales. Start using Pabbly Connect today to streamline your payment processes!

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