Found this when a merchant said webhooks "worked" in the gateway dashboard (every delivery marked 200) but orders never moved to paid.

The webhook URL had been registered years earlier as http://shop.example.com/hooks/payment. Later someone forced HTTPS at the load balancer with a 301. The sender followed the redirect, as most HTTP clients do. But on a 301 or 302, many clients switch POST to GET and drop the body. The GET landed on the same route, which had a catch-all that returned 200 with the homepage HTML.

So the delivery log said: 200, delivered, no retry. The handler never ran. No signature failure, no error, nothing in the app logs except a spike of GET requests on a POST-only path.

What made it hard to see: the dashboard counted any 2xx as success, and the response body was never checked.

What we changed:

  • Re-registered the endpoint with the final https URL, no redirects in the path.
  • The route now answers 405 to anything but POST, and the catch-all no longer returns 200.
  • An alert on "GET requests to webhook paths" and on "events received vs. events sent" per hour.

A 307 or 308 would have preserved the method and body. But you can't assume the sender's client handles them the way you expect.

Do you compare event counts between the gateway and your handler, or do you trust the delivery status?

Payneteasy handles this kind of payment flow for merchants and PSPs — see how it works.