Watch Step By Step Video Tutorial Below






1. Accessing Pabbly Connect for Integration

To automatically notify customers when a Razorpay payment fails, you first need to access Pabbly Connect. Start by visiting the Pabbly website and logging into your account. If you are new, you can sign up for a free account to get started.

Once logged in, navigate to the Pabbly Connect dashboard where you can create a new workflow. This platform allows you to integrate various applications seamlessly, making it ideal for automating notifications for payment failures.


2. Creating a New Workflow in Pabbly Connect

After accessing Pabbly Connect, click on the “Create Workflow” button. Name your workflow something like “Razorpay Payment Failed Notification”. This will help you easily identify it later.

  • Click on “Create from Scratch”.
  • Select the folder where you want to save this workflow.
  • Click “Create” to finalize your workflow setup.

Once created, you will see two boxes for the trigger and action applications. Here, you will set Razorpay as the trigger app to initiate the workflow whenever a payment fails.


3. Setting Up Razorpay as the Trigger

In the trigger application box, select Razorpay. This is where Pabbly Connect will listen for payment failure events. Choose the trigger event as “Payment Failed”.

Next, you will be provided with a webhook URL by Pabbly Connect. This URL is essential as it acts as a bridge between Razorpay and Pabbly Connect. You will need to configure this webhook in your Razorpay account.


4. Configuring the Webhook in Razorpay

Log into your Razorpay account and navigate to the developers section. Click on “Webhooks” and then select “Add Webhook”. Here, paste the webhook URL you obtained from Pabbly Connect.

  • Enter your email for notifications if needed.
  • Set the event to “Payment Failed”.
  • Click on “Create Webhook” to save the settings.

With this setup, Razorpay will now send a notification to Pabbly Connect whenever a payment fails, which will trigger the next steps in your workflow.


5. Sending Notifications via Pabbly Chat

After successfully capturing the webhook response in Pabbly Connect, the next step is to notify the customer through WhatsApp. To do this, select Pabbly Chat as your action application in the workflow.

Choose the action event as “Send Message”. You will need to connect your Pabbly Chat account by entering the API key. This allows Pabbly Connect to send messages on your behalf.

Customize the message to include relevant details about the failed payment, such as the customer’s name and the amount. This ensures that the notification is personalized and informative.


Conclusion

Using Pabbly Connect, you can create a seamless integration between Razorpay and Pabbly Chat to automatically notify customers of payment failures. This enhances customer communication and improves the chances of successful retries.