Backend Track • Advanced • 5 mins review

Feat: Handle PayPal Subscription webhooks

Adds PayPal webhook intake so the platform can process retried subscription 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: PayPal can retry subscription webhooks several times, and finance wants the system to process them automatically.

Changed Files (3)

  • src/webhooks/PayPalWebhookController.ts +17 -2
  • src/services/PayPalEventProcessor.ts +16 -1
  • test/webhooks/PayPalWebhookController.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