Courses

Laravel HTTP Client and 3rd-Party APIs

Stripe Webhooks: Processing Payment Results

You're reading a FREE PREVIEW of a PREMIUM course.

Video Version of the Lesson

[Only for premium members]

Link to the repository

[Only for premium members]

Building on our water park ticket purchasing system from Lesson 2, we'll now implement the complete payment flow by handling Stripe webhooks.

When customers complete their payments, Stripe will notify our application through webhooks, allowing us to update order statuses and send confirmation emails.

This lesson shows the "other side" of API integration - instead of making HTTP requests to external services, we'll receive and process HTTP requests from Stripe.

So, our goal is to create the Route/Controller/Service(s) to catch that webhook, whenever that comes in (it might not happen immediately).

Visually, our goal is that after the customer is seeing this "Processing" spinner...

...they would see this Success page next:

Meanwhile, on the back-end, the order would be marked as completed and email confirmation sent.


What You'll Learn

By the end of this lesson, you will learn how to:

  • Create secure webhook endpoints that verify request authenticity
  • Process different webhook event types (payment succeeded, failed, etc.)
  • Handle webhook retries and failure scenarios
  • Test webhook integrations locally with Stripe CLI
  • Process webhooks synchronously for immediate response

Understanding Stripe Webhook Events

When a customer completes their payment, Stripe sends multiple...

The full lesson is only for Premium Members.
Want to access all 7 video+text lessons of this course? (50 min)

You also get:

  • 83 courses
  • Premium tutorials
  • Access to repositories
  • Private Discord