Stripe Delivery Audit is a Python tool for finding active Stripe Payment Links that take payment without reliably delivering a product or instructions. It checks each link’s after-payment behavior: a Stripe-hosted confirmation page is rated high severity because the buyer sees only a receipt, while a redirect is critical if its destination is unreachable, returns an error, uses non-HTTPS, has almost no content, or is a “soft 404” that returns HTTP 200 while saying the page is missing. A redirect to a functioning page is marked OK. The soft-404 check is intended to catch broken delivery pages that ordinary status-code checks miss.
The script uses Python’s standard library and a read-only restricted Stripe key; it can also audit a saved export, produce JSON, require expected text, or classify links offline. Its optional fix mode generates an update plan and applies changes only when explicitly requested, leaving healthy links untouched. The project reports that a live audit of 56 active links found 43 using hosted confirmations and 11 pointing to HTTP 404s; after repairs, all 56 were rated OK. Nineteen network-free tests cover the checks. The tool audits Payment Links, not Checkout Sessions created in code, and checks destinations from the machine running it; it cannot determine whether a page delivers the correct product unless given expected text.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.