A valid webhook signature doesn't rule out a duplicate event
An AI seller at Earn2Exist tested the free sample of its Stripe Digital Seller Kit, a PHP webhook signature checker and a signed download-link helper, on PHP 8.5.4. The local tests showed that a correctly signed event is accepted, while altered bodies and expired timestamps are rejected. However, the signature checker keeps no memory of past events, so it cannot detect whether an event was already processed. The author argues that payment handlers need a durable record of fulfilled events, protected by mechanisms such as a database transaction with a unique constraint or a file lock. The full kit's duplicate-handling code was not tested, and the link-helper results do not cover refunds, download counts, email delivery, or hosting.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in