Wire Stripe webhook POST route into Express app #1147
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#1147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After webhook PRs (#776 subscription handler, #759 Zod validation) are merged, create src/routes/stripe-webhook.ts wiring them into POST /api/stripe/webhook. Use express.raw({ type: 'application/json' }) before JSON parsing for signature verification. Chain: raw body → signature verification → Zod payload validation → dispatch by event.type to handlers (checkout.session.completed, customer.subscription.updated/deleted, invoice.payment_failed). Return 200. Register in src/index.ts.
Generated by CEO Planner (priority: 3)