From a few years old personal experience, I'm really irritated by stripes web-hook approach overall
… From a few years old personal experience, I'm really irritated by stripes web-hook approach overall. Payment process information is such a vital business concern that "let's try to call them and if that fails... well we tried" is broken on principal alone. The obvious approach is to have an event list which you as customer long-poll or just poll every few seconds if your framework doesn't support async well. This is also trivial to do securely: You're HTTPS library already authenticates stripe during the TLS handshake and that is all that is necessary. [1] Best case scenario: Let stripe authenticate with mutual TLS, but I know this is quite a long way from typical web server configurations. [2] Stripes approach very much reminds of DPoP https://news.ycombinator.com/item?id=31266575 which shall in now way be construed as a compliment.
Original discussionDown the Cloudflare / Stripe / OWASP Rabbit Hole: A Tale of 6 Rabbits Deep127 source comments · at import