Skip to content

feat: Stripe billing webhook receiver#610

Open
Chrisland58 wants to merge 2 commits into
Disciplr-Org:mainfrom
Chrisland58:feat/stripe-webhooks
Open

feat: Stripe billing webhook receiver#610
Chrisland58 wants to merge 2 commits into
Disciplr-Org:mainfrom
Chrisland58:feat/stripe-webhooks

Conversation

@Chrisland58

Copy link
Copy Markdown
  • Add POST /api/billing/webhooks route with Stripe signature verification
  • Implement HMAC-SHA256 signature verification with constant-time comparison
  • Add billing_events table for event persistence and idempotency
  • Support event deduplication via stripe_event_id unique constraint
  • Integrate with job queue for asynchronous event processing
  • Add comprehensive test suite covering signature verification
  • Document webhook API in enterprise.md with curl examples
  • Add environment configuration for STRIPE_WEBHOOK_SECRET
  • Support multi-tenant billing with X-Organization-Id header

Test Coverage: 55.76% (signature verification logic)
Tests: 10 passing
Migration: 20260607000000_create_billing_events.cjs
closes #475

- Add POST /api/billing/webhooks route with Stripe signature verification
- Implement HMAC-SHA256 signature verification with constant-time comparison
- Add billing_events table for event persistence and idempotency
- Support event deduplication via stripe_event_id unique constraint
- Integrate with job queue for asynchronous event processing
- Add comprehensive test suite covering signature verification
- Document webhook API in enterprise.md with curl examples
- Add environment configuration for STRIPE_WEBHOOK_SECRET
- Support multi-tenant billing with X-Organization-Id header

Test Coverage: 55.76% (signature verification logic)
Tests: 10 passing
Migration: 20260607000000_create_billing_events.cjs
@drips-wave

drips-wave Bot commented Jun 7, 2026

Copy link
Copy Markdown

@Chrisland58 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add organization billing webhooks bridge for Stripe events in new src/routes/billingWebhooks.ts

1 participant