Language: Go. The pull request has one bug. You get three tries to find the line, then a short debrief.
Anyone who knew our webhook URL could post a fake "payment succeeded" to it. Now the handler checks the provider's HMAC signature over the raw body before trusting the event. Unsigned or wrongly signed requests get a 401.
Codetrap needs JavaScript: the code review happens in your browser.