Learn how to send WhatsApp messages when a refund is created in Razorpay using Pabbly Connect. Follow this detailed tutorial for seamless integration. Develop expertise in application integration and learn how to design streamlined automation workflows using proven, simplified approaches.

Watch Step By Step Video Tutorial Below


1. Accessing Pabbly Connect for Razorpay Integration

To begin integrating Razorpay with WhatsApp, you need to access Pabbly Connect. Start by typing the URL Pabbly.com/connect in your browser. Once on the landing page, you will see options to either sign in or sign up for free.

If you are a new user, click on the Sign Up button to create an account. This process is quick and will provide you with 100 free tasks upon registration. As an existing user, simply sign in to your account to access the dashboard.


2. Creating a Workflow in Pabbly Connect

After logging into Pabbly Connect, locate the blue tab labeled Create Workflow on the right side of the dashboard. Click this tab to start creating your automation workflow.

Next, name your workflow something descriptive like Razorpay Refund to WhatsApp. This name will help you easily identify your automation later. Once named, click on the Create button to proceed.

  • Click on the trigger application: Razorpay.
  • Select the trigger event: Refund Created.
  • Copy the webhook URL provided.

Now, you will set up Razorpay to send data to this webhook when a refund is initiated. This connection is crucial for the automation to work correctly.


3. Setting Up Webhook in Razorpay

Log into your Razorpay account and navigate to the Settings section. Here, you will find the Webhooks option. Click on it to add a new webhook.

Paste the webhook URL you copied from Pabbly Connect into the designated field and select the action event as Refund Created. After this, click on Create Webhook to finalize the setup.

  • Ensure the webhook is active to receive data.
  • Perform a test refund to verify the webhook is working.

Once the webhook is created, return to Pabbly Connect and perform a test submission to capture the data from Razorpay.


4. Formatting Data with Pabbly Connect

After receiving the webhook response, the next step involves formatting the refund amount correctly. The Razorpay webhook may provide the amount in an unexpected format, so you will need to use the Pabbly Connect Number Formatter.

Select the Number Formatter application and choose the action event Perform Math Operation. Map the refund amount received from Razorpay and divide it by 100 to convert it into the correct format.

Choose the operation: Divide. Map the data from the previous step to ensure accuracy.

Once you have formatted the amount, you can move on to sending a WhatsApp message with the updated information.


5. Sending WhatsApp Messages via Pabbly Connect

Now, it’s time to send the WhatsApp message using the WhatsApp Cloud API. In Pabbly Connect, choose the WhatsApp application and select the action event Send Template Message.

You will need to connect your WhatsApp account by providing the temporary access token, phone number ID, and WhatsApp Business Account ID. This information can be found in your Meta for Developers dashboard under your app settings.

Ensure you have created a message template in WhatsApp for this purpose. Map the recipient’s number, refund amount, and product name accordingly.

After mapping all necessary fields, click on Save and Send Test Request. If everything is set up correctly, you will receive a WhatsApp message confirming the refund.


Conclusion

This tutorial has guided you through the process of integrating Razorpay with WhatsApp using Pabbly Connect. Now, every time a refund is created in Razorpay, a WhatsApp message will automatically be sent to the client, ensuring smooth 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.