Member-only story
Post failed Stripe payments to Slack
Handling failed Stripe payments manually can be time-consuming. Zapier offers automation for this, but as your business scales, Zapier’s cost can rise quickly. Fortunately, there’s a cheaper and almost free solution — AWS Lambda webhooks. In this article, we’ll show you how to automate the process of posting failed Stripe payments to a Slack channel using AWS Lambda and the Serverless Framework.
By using AWS Lambda, you’re opting for a cost-effective solution. You only pay for the compute resources you use, making this approach highly affordable compared to Zapier’s pricing model, which charges based on tasks.
What You’ll Need
Here’s what you need before we begin:
- Stripe Account: To trigger the webhook for failed payments.
- Slack Workspace: To post the notifications to a Slack channel.
- AWS Account: To host your Lambda function.
- Serverless Framework: For managing and deploying your Lambda functions.
- Webhook.site: To inspect the structure of the Stripe webhook request before integrating it with your Lambda function.