How to automatically send direct messages on Slack when a payment fails in Stripe

Relay.app is an automation tool that lets you automate actions across Slack, Stripe, and many other apps. In this guide, we'll show you how to use Relay.app to automatically run the SlackSend DM” action for each StripePayment failed” event.
Stripe logoStripe > Slack
Trigger
Last triggered
Stripe logoPayment failed
Slack logoSend DM
1

Set the Stripe trigger as “Payment failed”

Add the Stripe trigger to initiate your playbook's actions before a payment is marked as failed.

To do this, click "Add trigger" in your playbook. Select the "Payment failed" trigger option from the dropdown menu under Stripe. It will enable your playbook to identify newly failed payments and trigger necessary actions automatically.

If you still need to connect your Stripe account to Relay.app, a prompt will guide you through the connection process.

2

Add the “Send DM” step in Slack

Integrate Slack automation into your playbook to ensure that you receive timely updates on failed payments.

Select "Add Step" and then find the "Send DM" automation for Slack. Enter all the required details, including the receiver's name and the body of the message containing detailed information.

If you still need to connect your Slack account to Relay.app, you will be prompted to complete that connection. Ensure you allow the necessary permissions for Relay.app to send direct messages through your Slack account.

3

Activate your playbook

Activating your playbook is the last step in the process. Once you turn it on, it will automatically send direct messages on Slack when a payment fails in Stripe without requiring manual intervention.

To activate your playbook, click the toggle button in the header. Before activating, we recommend performing a test run of your playbook to ensure all the steps work seamlessly together.

More how-to guides featuring Slack and Stripe

See all how-to guides ➔

What will you automate?

Sign up and get started with your first Relay.app playbook today.
Background image