Learn how to set up automated email notifications for failed payments using Pabbly Connect, Razor Pay, and Gmail in this step-by-step tutorial. Follow this definitive guide to creating powerful automated workflows with straightforward, efficiency-focused solutions that save valuable time.

Watch Step By Step Video Tutorial Below


1. Setting Up Pabbly Connect for Automation

To automate email notifications for failed payments, start by accessing Pabbly Connect. If you are a new user, go to pabbl.com/connect and sign up for free. This will allow you to explore the automation capabilities of Pabbly Connect with 100 free tasks each month.

Once signed in, navigate to the workflow builder. This is where you will create the automation that sends email notifications when a payment fails. The workflow consists of a trigger and an action, which are essential for the automation process.


2. Setting the Trigger for Razor Pay Payment Failure

In this step, you will set the trigger for the automation in Pabbly Connect. Click on the ‘Add Trigger’ button and search for Razor Pay. Select Razor Pay as your application, and choose the event ‘Payment Failed’. Click ‘Connect’ to receive the webhook URL.

Copy the webhook URL and open your Razor Pay dashboard. Navigate to Developers > Webhooks, and click on ‘Add New Webhook’. Paste the copied URL in the Webhook URL field. You can choose to enter a secret and alert email, but for this automation, just select the active event as ‘Payment Failed’ and click on ‘Create Webhook’.


3. Testing the Webhook Response in Pabbly Connect

After setting up the webhook in Razor Pay, you need to test the connection in Pabbly Connect. To do this, make a test purchase that results in a failed payment. Go to the payment page, select a product, and choose a payment method that will fail, such as entering incorrect UPI details.

Once the payment failure occurs, return to Pabbly Connect. You will see that the webhook response has been captured successfully. This confirms that the connection between Razor Pay and Pabbly Connect is working properly.


4. Sending Email Notifications via Gmail

Now that you have captured the webhook response, the next step is to send an automated email notification. In Pabbly Connect, click on ‘Add New Action Step’ and select Gmail as your action application. Choose the event as ‘Send Email’ and click ‘Connect’.

If you have an existing connection, you can select it. Otherwise, create a new connection by signing in with your Google account. Allow the necessary permissions to connect your Gmail account with Pabbly Connect.

  • Enter the sender’s name and email address.
  • Map the recipient email address dynamically from the webhook response.
  • Set the email subject and content, including dynamic fields for personalization.

Once you have filled in all the required fields, click on ‘Save and Send Test Request’. Check your Gmail inbox to verify that the email notification has been sent successfully.


5. Conclusion

In this tutorial, you learned how to automate email notifications for failed payments using Pabbly Connect, Razor Pay, and Gmail. By following the steps outlined, you can ensure that your customers are promptly informed of payment issues, enhancing their experience and potentially recovering lost sales.

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

Utilizing Pabbly Connect for this automation not only saves time but also streamlines communication with your customers. Try implementing this automation for your business today!