Learn how to send WhatsApp notifications for successful or failed Razorpay payments using Pabbly Connect. Follow our detailed 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. Accessing Pabbly Connect for Integration
To send WhatsApp notifications for Razorpay payments, the first step is accessing Pabbly Connect. You can do this by visiting the Pabbly website and logging into your account. If you don’t have an account, you can sign up for free, which only takes a couple of minutes.
Once logged in, navigate to the Pabbly Connect section by clicking on the ‘Access Now’ button. This will take you to the dashboard where you can create new workflows. Here, you’ll be able to set up the integration between Razorpay and WhatsApp Cloud API.
2. Creating a New Workflow in Pabbly Connect
In this step, you will create a workflow to handle notifications for both successful and failed payments. Click on the Pabbly Connect dashboard and select the ‘Create Workflow’ button. Name your workflow appropriately, such as ‘Send WhatsApp Notification for Razorpay Successful/Failed Payment’.
- Click on the ‘Create’ button after naming your workflow.
- This opens the main workflow window with trigger and action boxes.
In the trigger box, select Razorpay as the application and set the trigger event to ‘Payment Captured’. This event will initiate the workflow whenever a payment is made. After selecting the trigger, you will need to connect Razorpay with Pabbly Connect to capture payment details.
3. Setting Up the Trigger for Razorpay Payments
To set up the trigger, copy the webhook URL provided by Pabbly Connect. Go to your Razorpay account, navigate to Account Settings, and find the Webhooks section. Here, click on the ‘Add New Webhook’ button.
- Paste the copied webhook URL from Pabbly Connect.
- Select the events Payment Captured and Payment Failed to monitor both successful and failed payments.
Click on ‘Create Webhook’ to finalize the setup. Now, return to Pabbly Connect, which should indicate it is waiting for a response from Razorpay. To test this, make a payment through Razorpay, either successful or failed, to generate a response.
4. Sending WhatsApp Notifications Based on Payment Status
Once the payment response is received in Pabbly Connect, you can set up the action to send WhatsApp notifications. First, add a router to differentiate between successful and failed payments. Click on the router and create two routes: one for successful payments and another for failed payments.
For successful payments, set a filter where the payment entity status equals ‘captured’. For failed payments, set a filter for when the payment entity status equals ‘failed’.
Next, for each route, set the action to send a template message via WhatsApp Cloud API. You’ll need to connect to the WhatsApp Cloud API by providing your access token, phone number ID, and WhatsApp Business Account ID. Make sure to map the customer’s name and product name into the message template for personalized notifications.
5. Testing the Integration with Razorpay and WhatsApp
To ensure everything is set up correctly, perform a successful payment through Razorpay. If configured properly, the customer will receive a WhatsApp notification indicating that their payment was successful. Similarly, test a failed payment to verify that the corresponding notification is sent as well.
Check your WhatsApp for the messages. Successful payments should show a message like ‘Hello [Customer Name], your payment for [Product Name] was successful!’ and failed payments should display a message like ‘Hello [Customer Name], your payment for [Product Name] has failed. Please try again.’ This confirms that Pabbly Connect is effectively managing the integration between Razorpay and WhatsApp notifications.
Conclusion
This tutorial demonstrated how to send WhatsApp notifications for Razorpay successful or failed payments using Pabbly Connect. By following the steps outlined, you can automate notifications and enhance customer communication effectively.
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!