Learn how to integrate Razorpay and Twilio using Pabbly Connect to send SMS notifications for failed payments. Step-by-step tutorial included. Master proven automation processes with practical implementation examples and strategic recommendations you can apply immediately in your workflow.

Watch Step By Step Video Tutorial Below


1. Accessing Pabbly Connect for Integration

To begin the integration process, access Pabbly Connect by visiting Pabbly.com/connect. This platform allows you to automate workflows by connecting different applications seamlessly.

Once on the site, you’ll see options to sign in or sign up. If you are a new user, click on the ‘Sign Up’ button, which takes only a few minutes and provides 100 free tasks for your initial use. After signing in, navigate to the dashboard where you can create a new workflow.


2. Creating a Workflow in Pabbly Connect

In the Pabbly Connect dashboard, click on the ‘Create Workflow’ button to start setting up your integration. Name your workflow something descriptive, like ‘Send SMS for Failed Razorpay Payments’ to easily identify its purpose. using Pabbly Connect

  • Click on the ‘Create’ button after naming your workflow.
  • Choose Razorpay as your trigger application, since this will initiate the workflow when a payment fails.
  • Select the trigger event as ‘Payment Failed’.

Once you have set this up, Pabbly Connect will provide you with a webhook URL. This URL is crucial as it connects Razorpay to Pabbly Connect, allowing data to flow between the two applications.


3. Setting Up Webhook in Razorpay

Log into your Razorpay account and navigate to the ‘Settings’ section. Here, you will find an option for ‘Webhooks’. Click on it and then select ‘Add New Webhook’. Paste the webhook URL provided by Pabbly Connect into the designated field.

For the active events, ensure you select ‘Payment Failed’ to ensure that Razorpay sends notifications to Pabbly Connect whenever a payment fails. Click on ‘Create Webhook’ to save your settings.


4. Testing the Integration with Pabbly Connect

After setting up the webhook, it’s time to test the integration. Go back to Pabbly Connect and click on the ‘Test Submission’ button. This action will allow you to check if the webhook is properly receiving data from Razorpay. using Pabbly Connect

To simulate a failed payment, go to your Razorpay payment page and initiate a payment. Fill in the necessary details but cancel the payment before completion. This action should trigger the webhook, and you will see the payment status as ‘Failed’ in Pabbly Connect.

  • Check the webhook response in Pabbly Connect to ensure it captures the payment details.
  • Verify that the user details such as name and WhatsApp number are correctly received.

This step is crucial as it confirms that your integration is working correctly and that Pabbly Connect is receiving data from Razorpay.


5. Sending SMS via Twilio Using Pabbly Connect

Now that the webhook is set up and tested, the next step is to configure Twilio to send SMS notifications. In Pabbly Connect, select Twilio as your action application. using Pabbly Connect

Choose the action event as ‘Send SMS Message’. You will need to connect your Twilio account by providing your Account SID, Authorization Token, and Twilio phone number. Once connected, you can customize the SMS content.

Craft your SMS message, including the user’s name and a notification about the failed payment. Map the recipient’s mobile number from Razorpay to ensure the SMS is sent to the right user.

After setting up the SMS details, click on ‘Save’ and then send a test request to verify that the SMS is sent successfully. You should receive a confirmation SMS indicating that the integration is complete.


Conclusion

This tutorial has guided you through the process of integrating Razorpay and Twilio using Pabbly Connect to send SMS notifications for failed payments. By following these steps, you can automate your payment notifications efficiently.

Ensure you check out Pabbly Connect to create business automation workflows and reduce manual tasks. Pabbly Connect currently offer integration with 2,000+ applications.

With Pabbly Connect, you can easily set up workflows that enhance your customer communication and streamline your payment processes. Start using Pabbly Connect today to maximize your automation capabilities!