Learn how to integrate WhatsApp Cloud API with URL Using Pabbly Connect to automate payment confirmations and track orders effectively. Implement the precise methodologies leading organizations use to automate repetitive tasks, illustrated with practical examples designed for immediate application. with Pabbly Connect.
Watch Step By Step Video Tutorial Below
1. Setting Up Razorpay Webhook for Payment Capture
To begin with the integration of WhatsApp Cloud API, we first need to set up a Razorpay webhook. This webhook will automatically capture payment details whenever a transaction is completed. The process starts by logging into your Razorpay account and navigating to the settings.
Once in the settings, locate the ‘Webhooks’ section. Here, you will need to add a new webhook. Follow these steps:
- Click on ‘Add New Webhook.’
- Enter the webhook URL you copied from Pabbly Connect.
- Select the event ‘Payment Captured.’
- Click ‘Create Webhook.’
After setting up the webhook, you will receive a confirmation that the webhook has been saved successfully, ready to capture payment details.
2. Integrating Google Sheets for Payment Tracking
Next, we will integrate Google Sheets to log the payment details captured by Razorpay. This allows for easy tracking and management of all payments. In Pabbly Connect, select Google Sheets as your action application.
In the Google Sheets action, choose the event ‘Add a New Row.’ You will need to connect your Google Sheets account by signing in and allowing necessary permissions. After that, select the specific spreadsheet where you want to log the payment details.
- Choose the spreadsheet created for Razorpay payments.
- Map the data fields like Customer Name, Email, Phone Number, and Order ID from Razorpay’s response.
Once you’ve mapped all necessary fields, test the connection to ensure data is being logged correctly in your Google Sheets.
3. Sending Notifications via WhatsApp Cloud API
The final step involves sending a confirmation message through the WhatsApp Cloud API after a successful payment. In Pabbly Connect, select WhatsApp Cloud API as your action application. The action event will be ‘Send Template Message.’
Connect your WhatsApp Cloud API by entering your temporary access token, phone number ID, and WhatsApp Business Account ID. Make sure you have created a message template in WhatsApp Cloud API that will be used for sending the confirmation.
Select your message template named ‘Razorpay Payment.’ Map the recipient’s phone number and any dynamic fields like the customer’s name.
Once all fields are filled, send a test message to verify that it works correctly. You should receive a confirmation message on WhatsApp.
4. Testing the Complete Automation Workflow
Now that we have integrated WhatsApp Cloud API, Google Sheets, and Razorpay, it’s time to test the entire workflow. To do this, make a test payment through your Razorpay payment page. Ensure you fill in all necessary details, including your UPI ID.
After completing the payment, check your Google Sheets to confirm that the payment details have been logged correctly. You should see the customer’s name, email, phone number, and order ID populated in the new row. Additionally, check your WhatsApp to ensure you received the confirmation message.
Verify the data in Google Sheets. Confirm the WhatsApp message received.
This testing phase is crucial to ensure that all integrations are functioning as expected before going live with your automation.
5. Conclusion
Integrating the WhatsApp Cloud API with URL and Order ID through Pabbly Connect is a powerful way to automate payment confirmations and enhance customer communication. By following the steps outlined, you can efficiently track payments in Google Sheets and keep your customers informed via WhatsApp.
Thanks for following along with this tutorial! Remember to subscribe to the channel for more helpful content like this.
If you found this guide useful, please consider giving it a thumbs up and sharing it with others who might benefit from it.
This integration not only saves time but also improves customer satisfaction, allowing you to focus more on your core business activities. Start automating your payment processes today for a smoother operational flow.