Learn how to notify admins and customers about failed Razorpay payments on WhatsApp using Pabbly Connect. Follow our step-by-step tutorial for seamless integration. 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 Razorpay Notifications
To begin, access Pabbly Connect by visiting the dashboard at Pabbly.com/connect. This platform facilitates the integration of Razorpay with WhatsApp for sending payment failure notifications. You can create a free account which allows you to set up automation workflows easily.
Once you have logged in, click on the ‘Create Workflow’ button. Name your workflow something relevant, such as ‘Send Razorpay Payment Failure Notification’. This will help you keep track of your automation tasks easily.
2. Setting Up the Trigger for Razorpay Payment Failures
The first step in your workflow is to set the trigger. In this case, select Razorpay as the trigger application. The trigger event you need to choose is ‘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 generated webhook URL.
After selecting the trigger, you will be provided with a webhook URL. This URL needs to be pasted into the Razorpay dashboard under the webhooks section. This connection allows Pabbly Connect to receive data whenever a payment fails, effectively automating the notification process.
3. Configuring Razorpay for Webhook Notifications
Navigate to your Razorpay dashboard and go to the settings section. Under settings, locate the webhooks tab and click on it to add a new webhook. Paste the webhook URL you copied from Pabbly Connect into the designated field.
In the active event section, select ‘Payment Failed’ to ensure that Razorpay sends notifications to Pabbly Connect only when a payment fails. Once done, click on ‘Create Webhook’ to finalize the setup.
4. Testing the Integration with a Sample Payment
To test the integration, you will need to simulate a payment failure. Fill in the payment details on your Razorpay payment link and deliberately cancel the payment. This step is crucial as it allows Pabbly Connect to capture the failure data and confirm that the webhook is functioning correctly.
- Fill in customer details such as name, email, and WhatsApp number.
- Select any product and proceed to payment.
- Cancel the payment on the bank page to trigger a failure.
After performing this test, return to Pabbly Connect to check if the response data from Razorpay appears correctly. This data will include important details about the failed payment, which will be used for sending notifications.
5. Sending Notifications to Admin and Customer via WhatsApp
Now that you have captured the payment failure data, the next step is to send notifications to both the customer and the admin. To do this, add a new action step in your workflow and select the WhatsApp Cloud API. using Pabbly Connect
Choose the action event as ‘Send Template Message’. Connect your WhatsApp Cloud API by providing the necessary credentials from your WhatsApp account. This includes the access token, phone number ID, and business account ID.
Next, select the message template you created for payment failures. Map the necessary fields such as customer name, product name, and order ID to personalize the messages. Finally, click on ‘Save and Send Test Request’ to ensure that the notifications are sent successfully.
Conclusion
By following this tutorial, you can efficiently set up notifications for failed Razorpay payments using Pabbly Connect. This automation saves time and ensures that both the admin and customer are promptly informed of payment issues, enhancing communication and customer service.
Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.
- Check out Pabbly Connect – Automate your business workflows effortlessly!
- Sign Up Free – Start your journey with ease!
- 10,000+ Video Tutorials – Learn step by step!
- Join Pabbly Facebook Group – Connect with 21,000+ like minded people!