Skip to content

billing-foundation

Plugin host for subscription billing — manages the read_subscriptions projection table and exposes 5 domain events (subscription created/updated/canceled, invoice paid/failed) appended by the foundation’s own billing-foundation:write:process-event write-handler after provider plugins verify and normalize each webhook. Also ships billing-foundation:write:create-checkout-session and billing-foundation:write:create-portal-session write-handlers, a billing-foundation:query:subscription:list query handler, and a createSubscriptionWebhookHandler factory for the /api/subscription/webhook/:providerName route. Low-level building block — use subscription-stripe or subscription-mollie unless you are writing a new payment provider.

  • Requires: none
  • Activation: always on (not toggleable)