Commit
Fix Stripe webhook verification failing on every delivery under Bun
Commit details
Commit notes
stripe.webhooks.constructEvent (sync) throws unconditionally on Bun because the SDK selects the async-only SubtleCrypto provider, so every webhook delivery returned 500 and subscriptions/purchases never completed via webhook. Switch to constructEventAsync. Caught by the new webhook integration test. Also converts redirect-URL validation throws to BadRequestError (part of the error-hierarchy sweep).
[private session redacted]
- Files changed
- 1
- Lines added
- +7
- Lines removed
- −3