Learn how to send automated SMS notifications via Twilio when a Stripe payment fails using Pabbly Connect in this detailed step-by-step tutorial. 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 to Set Up Automation

To notify via Twilio SMS when a Stripe payment fails, start by accessing Pabbly Connect. This platform allows you to create automated workflows without any coding skills. Open your browser and navigate to the Pabbly Connect landing page by searching for ‘Pabbly.com/connect’.

Once you reach the Pabbly Connect page, you’ll see two options: ‘Sign In’ and ‘Sign Up for Free’. If you are a new user, click on ‘Sign Up for Free’ to create an account and get 100 free automation tasks every month. Existing users can simply sign in to access their dashboard.


2. Creating a New Workflow in Pabbly Connect

After signing in, the next step is to create a new workflow. Click on the ‘Create Workflow’ button on your dashboard. You will be prompted to choose between the new workflow builder and the classic one. For a modern experience, select the new one. using Pabbly Connect

Next, name your workflow, such as ‘Notify Twilio SMS on Stripe Payment Failure’, and select a folder to save it. If you need to create a new folder, you can do so by clicking on the ‘Create New Folder’ button. Once done, click on the ‘Create’ button to proceed.

  • Click on ‘Create Workflow’.
  • Choose the new workflow builder.
  • Name your workflow and select a folder.
  • Click on ‘Create’ to finalize.

After creating the workflow, you’ll see the workflow window with options for setting up triggers and actions. This is where you will define how Pabbly Connect will automate the notification process.


3. Setting Up Stripe as the Trigger Application

In the workflow window, click on the ‘Add Trigger’ button to set up your trigger application. Search for and select ‘Stripe’ as your trigger application. Next, choose the trigger event as ‘Failed Payment’. This event will initiate the workflow whenever a payment fails in Stripe. using Pabbly Connect

After selecting the trigger event, Pabbly Connect will provide you with a webhook URL. Copy this URL as you will need it to connect Stripe with Pabbly Connect. Open your Stripe account and navigate to the ‘Developers’ section, then go to ‘Webhooks’.

  • Select ‘Add Endpoint’ in the Webhooks section.
  • Paste the copied webhook URL in the Endpoint URL field.
  • Leave the description blank and select ‘Events on Your Account’.
  • Select the current version of the event and add the endpoint.

Once you have added the endpoint, Pabbly Connect will start waiting for a response from Stripe to confirm the connection.


4. Testing the Connection with a Payment Failure

To test the connection, initiate a payment failure by using a dummy card that is known to be declined. Open the payment link from your Stripe dashboard, fill in the details, and attempt to make a payment. Once the payment is declined, Pabbly Connect will capture the webhook response.

After the payment failure, return to your Pabbly Connect workflow. You should see that Pabbly has successfully captured the response, including all relevant details about the transaction and the customer. This confirms that the connection between Stripe and Pabbly Connect is working correctly.

Initiate a payment failure using a dummy card. Return to Pabbly Connect to verify the captured response. Ensure all transaction details are recorded.

With this step completed, your workflow is now ready to send automated SMS notifications via Twilio whenever a payment fails on Stripe.


5. Sending SMS Notifications via Twilio

Now that the Stripe trigger is set up, the next step is to add Twilio as the action application. Click on ‘Add Action Step’ and search for ‘Twilio’. Choose the action event as ‘Send SMS Message’. Click on ‘Connect’ to establish a connection between Twilio and Pabbly Connect.

To connect Twilio, you will need your Account SID and Authorization Token from your Twilio dashboard. Copy these details and paste them into the respective fields in Pabbly Connect. After saving the connection, you can set the SMS body to notify the customer about the failed payment.

Select Twilio and choose ‘Send SMS Message’ as the action. Paste your Account SID and Authorization Token. Enter the message body and map the customer’s name dynamically.

After setting up the SMS details, click on ‘Save and Send Test Request’. You should receive a test SMS confirming that your automation is working. This completes the setup of your workflow to send SMS notifications via Twilio when a Stripe payment fails.


Conclusion

In this tutorial, we demonstrated how to set up automated SMS notifications via Twilio using Pabbly Connect whenever a Stripe payment fails. This integration helps you promptly inform customers about payment issues, enhancing customer service and recovery rates. Start using Pabbly Connect today to streamline your business processes.

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