Watch Step By Step Video Tutorial Below
1. Setting Up Pabbly Connect for Razorpay Integration
To begin, access Pabbly Connect by visiting pabbly.com and logging into your account. Once logged in, navigate to the Pabbly Connect dashboard to create a new workflow. This is where you will set up the integration between Razorpay, Slack, and Gmail for handling failed payment notifications.
In the workflow setup, you will see options for a “Trigger” and an “Action”. The Trigger is the event that starts the workflow, while Actions are the tasks that follow. For this integration, you will use Razorpay as the Trigger application.
2. Configuring Razorpay Trigger in Pabbly Connect
In this section, you will configure Razorpay as the Trigger in Pabbly Connect. Select Razorpay from the list of applications and choose the “Payment Failed” event. Click on the “Connect” button to set up the connection.
- Select Razorpay as the application.
- Choose the “Payment Failed” event as the trigger.
- Click on the “Connect” button to establish the connection.
After clicking connect, a webhook URL will be generated. This URL is essential as it serves as a bridge between Razorpay and Pabbly Connect. Copy this webhook URL to set it up in your Razorpay account.
3. Setting Up Webhook in Razorpay
Now, you need to configure the webhook in your Razorpay account to link it with Pabbly Connect. Navigate to the “Developers” section in Razorpay, and select “Webhooks”. Click on “Add New Webhook” and paste the webhook URL you copied earlier.
- Go to the “Developers” section in Razorpay.
- Select “Webhooks” and click on “Add New Webhook”.
- Paste the webhook URL and select the active events.
Once you save the webhook, you will be set to capture failed payment events. To test this setup, initiate a failed payment transaction in Razorpay.
4. Capturing Failed Payment Notifications
With the webhook configured, you can now capture failed payment notifications in Pabbly Connect. When a payment fails, Razorpay will send the details to the webhook, which you can view in your workflow.
To test this, go to your Razorpay payment page and simulate a failed transaction. Once the transaction fails, return to Pabbly Connect and check if the details have been captured correctly in your workflow.
- Simulate a failed payment transaction in Razorpay.
- Check the workflow in Pabbly Connect for captured details.
- Confirm that the details match the failed transaction.
Once you confirm that the details are captured, you can proceed to set up actions for notifying your team via Slack and the customer via Gmail.
5. Notifying Team via Slack and Customers via Gmail
Now, it’s time to set up the actions in Pabbly Connect. First, select Slack as your action application. Choose the “Send Message to Channel” event and connect your Slack account. Specify the channel where notifications should be sent.
Next, you will enter the message details, including the customer’s name and payment amount. After that, set up Gmail as another action application. Choose “Send Email” as the event and connect your Gmail account. Fill in the email details, including the subject and body of the email with the relevant customer information.
- Select Slack as the action application and connect your account.
- Choose “Send Message to Channel” and enter message details.
- Select Gmail as the next action and fill in the email details.
Finally, test the entire workflow to ensure that notifications are sent to both Slack and the customer’s email upon a failed payment. This setup automates your notification process effectively using Pabbly Connect.
Conclusion
This tutorial demonstrated how to use Pabbly Connect to integrate Razorpay with Slack and Gmail for seamless notifications of failed payments. By following these steps, you can automate your workflow and ensure timely alerts for both your team and customers.



