Skip to content

BillingOptions

Defined in: src/billing/intake.ts:75

Options for createBilling.

Property Type Description Defined in
eventTtl? Duration How long processed webhook event ids are remembered. Default "7d". src/billing/intake.ts:87
logger? object Non-fatal problems. Default console.warn. src/billing/intake.ts:89
logger.warn (message, error?) => void - src/billing/intake.ts:89
metadataKey? string Subscription-metadata key carrying our customer id. Default "customerId". src/billing/intake.ts:79
now? () => number Clock (unix ms) for cancellation / reconcile stamps — pass the engine’s. Default Date.now. src/billing/intake.ts:91
onUnmapped? (event) => void Called for a provider item the catalog does not map (the item is ignored), and for a subscription whose customer cannot be resolved. Default: a logger.warn. src/billing/intake.ts:85
providers readonly BillingProvider[] Provider adapters (createStripeProvider(…), createPolarProvider(…), …). Ids must be unique. src/billing/intake.ts:77