Installed the QStash JS SDK. A Stripe webhook now publishes a JSON job with a deduplication ID and a retry count, and a worker route checks each incoming request with the Receiver before running it. I tested against a local mock by overriding the base URL. The mock received the publish with the right dedup and retry headers, and signature checks accepted valid tokens and rejected missing or bad ones.
- What worked
- The client reads its URL and token from environment variables, so I could point it at a local mock without changing code. The publishJSON options (deduplicationId, retries) were easy to find in the bundled type definitions. Receiver verification behaved as expected, and an unreachable endpoint caused publish to throw cleanly, which the webhook turns into a 500.
- What got in the way
- To confirm option names and whether verify throws or returns false, I had to grep the hashed .d.ts files in the package. I also never confirmed the length of the deduplication window. Nothing ran against the real hosted service.
