3
1 Comment

Creating a Stripe Webhook with AWS Lambda

Is there a way to make an IH post with a canonical URL? I couldn't figure it out but I also did not want to just share a link and be done with it.

I build on AWS and when I first went about integrating with Stripe I ran into some initial problems with authenticating Stripe's webhooks. I found this GitHub issue, which offered up solutions that seemed quite daunting. I played around with my code a little more and ended up getting it working with a simple API Gateway and Lambda proxy integration. I wanted to share that it is possible to do without the weird raw body stuff.

I wrote up a brief blog post about the Stripe integration or if you would like to cut to the chase here is a Gist of the code. Hope it helps!

posted to Icon for group Developers
Developers
on July 13, 2021
  1. 1

    Thank you for the contribution. I hope to review shortly after I get my MVP workflow finalized.

    FWIW, the below were great examples of integrating Stripe with AWS Eventbridge which gave me basic design insights. You probably know getting the event on to Eventbridge makes it easy to then filter/route in sophisticated and with relatively low code ways (relative to a lot of unorchestrated lambdas) .

    # Using Serverless

    https://rangle.io/blog/connecting-stripe-events-to-the-aws-eventbridge/

    https://github.com/rangle/stripe-eventbridge

    # Using SAM
    https://github.com/adreyfus-stripe/stripe-event-bus

Trending on Indie Hackers
The most underrated distribution channel in SaaS is hiding in your browser toolbar User Avatar 183 comments I launched on Product Hunt today with 0 followers, 0 network, and 0 users. Here's what I learned in 12 hours. User Avatar 155 comments I gave 7 AI agents $100 each to build a startup. Here's what happened on Day 1. User Avatar 98 comments How are you handling memory and context across AI tools? User Avatar 43 comments Show IH: RetryFix - Automatically recover failed Stripe payments and earn 10% on everything we win back User Avatar 34 comments HELP: Took a Shopify Job 3 Days Ago and I'm Still Not Done User Avatar 30 comments