Skip to main content
The examples are runnable applications, not isolated API snippets. Each one shows how product state, Commet configuration, server actions, and customer access work together.

Billing models

Lifecycle

The webhooks example shows subscription activation, past-due recovery, cancellation, signed event handling, and UI derived from confirmed billing state.

Run an example

Clone the repository, open one example directory, copy .env.example, and use a sandbox API key. Keep the example’s database and Commet organization disposable; Test Clock operations and fixture cards are sandbox-only.
Read the example together with the relevant conceptual guide. The source shows one implementation; How Billing Works defines the rules that remain true across frameworks.