Backend Track • Advanced • 3 mins review

Feat: Handle Stripe Payment webhooks

Adds Stripe webhook intake so the platform can process retried payment events without manual intervention.

Scenario Goal & Context

Goal: Verify incoming webhook requests, process the event payload, and prevent duplicate side effects when the same event is delivered again.

Background: Stripe can retry payment webhooks several times, and finance wants the system to process them automatically.

Changed Files (3)

  • src/webhooks/StripeWebhookController.ts +17 -2
  • src/services/StripeEventProcessor.ts +16 -1
  • test/webhooks/StripeWebhookController.test.ts +11 -0

Ready to practice reviewing this PR?

Open this scenario inside the interactive DiffSense simulator to leave inline comments and receive an automated score.

Start Review Session