Deeman
4dbded74ca
test(billing): add Stripe E2E webhook lifecycle tests
16 tests covering the full Stripe webhook flow through /billing/webhook/stripe:
- Subscription creation (customer.subscription.created → DB row)
- Period end extraction from items (Stripe API 2026-02+ compatibility)
- Billing customer creation
- Status updates (active, past_due, trialing)
- Cancellation (customer.subscription.deleted → cancelled)
- Payment failure (invoice.payment_failed → past_due)
- One-time payments (checkout.session.completed mode=payment)
- Full lifecycle: create → update → recover → cancel
- Edge cases: missing metadata, empty items, invalid JSON, bad signatures
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 18:17:05 +01:00
..
2026-02-23 22:26:42 +01:00
2026-03-03 17:29:13 +01:00
2026-02-28 22:51:26 +01:00
2026-02-22 00:44:40 +01:00
2026-03-03 16:07:30 +01:00
2026-03-03 18:05:55 +01:00
2026-03-02 09:40:52 +01:00
2026-02-24 00:11:52 +01:00
2026-03-02 09:40:52 +01:00
2026-02-24 10:30:18 +01:00
2026-02-23 21:08:09 +01:00
2026-03-02 09:40:52 +01:00
2026-03-02 09:40:52 +01:00
2026-03-02 09:40:52 +01:00
2026-02-24 21:24:37 +01:00
2026-02-24 21:24:37 +01:00
2026-02-24 10:15:36 +01:00
2026-02-22 00:44:40 +01:00
2026-02-27 11:52:02 +01:00
2026-03-02 09:40:52 +01:00
2026-02-22 17:03:13 +01:00
2026-03-02 09:40:52 +01:00
2026-02-22 00:44:40 +01:00
2026-02-24 21:24:37 +01:00
2026-03-02 09:40:52 +01:00
2026-02-23 18:40:11 +01:00
2026-03-02 09:40:52 +01:00
2026-03-03 18:17:05 +01:00
2026-03-01 22:36:30 +01:00
2026-02-24 10:30:18 +01:00
2026-02-23 18:40:11 +01:00
2026-03-02 09:40:52 +01:00