Learn how to send WhatsApp notifications for Razorpay successful or failed payments using Pabbly Connect. Step-by-step guide to automate notifications. Implement the precise methodologies leading organizations use to automate repetitive tasks, illustrated with practical examples designed for immediate application.
Watch Step By Step Video Tutorial Below
1. Accessing Pabbly Connect for Integration
To send WhatsApp notifications for Razorpay successful or failed payments, the first step is to access Pabbly Connect. You can do this by visiting the Pabbly website and signing up for a free account if you don’t already have one. Signing up is quick and provides you with 100 free tasks every month.
Once signed in, navigate to the dashboard and locate the Pabbly Connect option. Click on the ‘Access Now’ button under Pabbly Connect to get started with creating your workflow. This platform is essential for automating the integration between Razorpay and WhatsApp Cloud API.
2. Creating a Workflow in Pabbly Connect
To create a workflow in Pabbly Connect, click on the ‘Create Workflow’ button. You will be prompted to name your workflow. For this integration, name it ‘Send WhatsApp Notification for Razorpay Successful/Failed Payment’. Select a folder for organization, then click ‘Create’.
- Name your workflow appropriately.
- Select a folder for better organization.
- Click on ‘Create’ to start configuring your workflow.
This action leads you to the workflow setup interface, where you will define triggers and actions. For this integration, the trigger application will be Razorpay, and the action application will be WhatsApp Cloud API.
3. Setting Up the Trigger in Pabbly Connect
The next step involves setting up the trigger in Pabbly Connect. Choose Razorpay as your trigger application. You will need to select the trigger event, which in this case is ‘Payment Captured’. This event will activate whenever a payment is successfully processed.
After selecting the trigger event, you must connect Razorpay with Pabbly Connect. Copy the webhook URL provided by Pabbly Connect and navigate to your Razorpay account. Go to the ‘Account Settings’, then ‘Webhooks’, and click on ‘Add New Webhook’. Paste the copied URL and select the events for which you want to receive notifications.
- Paste the copied webhook URL in Razorpay.
- Select the ‘Payment Captured’ event.
- Click on ‘Create Webhook’ to finalize the setup.
After setting up the webhook, return to Pabbly Connect to confirm that it is waiting for a response from Razorpay. This is crucial for the next steps in automating your notifications.
4. Sending WhatsApp Notifications via Pabbly Connect
Now that the trigger is set, it’s time to configure the action in Pabbly Connect. Select the WhatsApp Cloud API as your action application. Choose the action event ‘Send Template Message’. This will allow you to send customized messages based on the payment status.
To connect WhatsApp Cloud API, you will need to provide several details, including the temporary access token, phone number ID, and WhatsApp business account ID. These can be found in your WhatsApp Cloud API account settings. After entering these details, save the connection.
Enter the temporary access token from WhatsApp Cloud API. Input the phone number ID and WhatsApp business account ID. Save the connection to proceed.
After successfully connecting, you can set up the message template that will be sent to customers based on their payment status. Make sure to map the recipient’s mobile number and personalize the message with their name and product information.
5. Configuring Notifications for Failed Payments
To handle failed payments, you will need to set up a separate route in Pabbly Connect. Create a new route for failed payments and repeat the previous steps for setting up the action. This time, ensure that the filter checks for the payment status of ‘Failed’.
Similar to the successful payment route, select the WhatsApp Cloud API for the action and choose the ‘Send Template Message’ event. Map the same details but make sure the message template reflects the failed payment notification.
Create a new route for failed payments in Pabbly Connect. Set the filter to check for ‘Failed’ payment status. Map the details in the WhatsApp Cloud API action.
Once both routes are set up, you can test the integration by making both successful and failed payments through Razorpay. This will confirm that notifications are sent correctly via WhatsApp.
Conclusion
In this tutorial, we explored how to send WhatsApp notifications for Razorpay successful or failed payments using Pabbly Connect. By following the steps outlined, you can automate customer notifications effectively, enhancing communication and customer satisfaction.
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!