Deduplicate a payment webhook
Mid · practical lab · 30 min · runtime php-cli
Brief
A payment webhook can be delivered more than once. Describe how to dedupe by event id, where the unique constraint lives, and what the handler does on a replay with the same payload versus a different one.
3 progressive hints are available in the editor.
Public checks
- dedupes by id — expected:
mentions a unique event id checked before side effects