Add test: Stripe webhook returns 400 for events missing required fields #1034
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#1034
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?
In
tests/webhooks/stripe-validation.test.ts(or create it), add test cases:/api/webhooks/stripewith a payload missingtypefield — verify 400typebut missingdata.object.id— verify 400dataobject — verify 400All test payloads should bypass Stripe signature verification (mock the signature middleware). This validates the Zod payload schema from PR #759 rejects malformed events before they reach business logic.
Generated by CEO Planner (priority: 3)