providers/module-types.ts

rekey · apps/api/src/modules/billing/providers/module-types.ts · typescript · MIT
payments

module-types.ts defines the billing provider contract, including webhook verification and event types.

// Source: https://github.com/rekey-dev/rekey | License: MIT | Copyright 2026 Rekey
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * ProviderModule, the self-describing billing-provider contract
 * (docs/specs/billing-provider-modules.md).
 *
 * One provider = one module under `providers/modules/<name>/` implementing
 * this descriptor. The static registry (`registry.ts`) derives everything
 * else from it: the provider-name enum, the generic webhook pipeline route,
 * and (P3/P4) the generic credentials service + discovery endpoints.
 *
 * The OUTBOUND side (`BillingProvider`, ./types.ts) predates this contract and
 * is untouched by it: providers are still constructed by the switch in
 * providers/index.ts. This file is the INBOUND half only, webhook
 * verificatio

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key