Backend Track • Advanced • 6 mins review
Feat: Handle Checkout Refund webhooks
Adds Checkout webhook intake so the platform can process retried refund 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: Checkout can retry refund webhooks several times, and finance wants the system to process them automatically.
Changed Files (3)
- src/webhooks/CheckoutWebhookController.ts +17 -2
- src/services/CheckoutEventProcessor.ts +16 -1
- test/webhooks/CheckoutWebhookController.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