checkout:install

php mitosis checkout:install
✓ Checkout install complete: transaction, status, and refund tables ready.

Requires Clarity 1.2.0 or newer. Creates three tables backing Checkout's transaction ledger:

  • checkout_transactions — one row per checkout, with its current status.
  • checkout_transaction_statuses — insert-only history, with a failure reason column.
  • checkout_refunds — refunds, which accumulate against a transaction rather than changing its status.

Why this is separate from setup

setup creates sessions and caches, the two tables Clarity itself owns and every app needs. Payments are opt-in, so the checkout tables are not part of that set — an application that takes no payments should not carry three empty payment tables it never queries. Run this only if you use Services\Checkout.

This is also why the checkout tables are not a cross-repo compatibility surface the way sessions and caches are: they are created on request, not on install.

Where it fits

cp .env_example .env
php mitosis setup             # sessions + caches — always
php mitosis checkout:install  # only if you take payments
php mitosis migrate           # your own app's migrations

Next steps

  • Checkout — the service these tables back.
  • setup — the two tables every app needs first.