Invoices can now be paid onchain. POST /v1/invoices/:id/send issues the
invoice, binds a public pay page (/i/<token> on the hosted checkout),
opens a checkout session for the invoice total on the merchant's
networks and emails the link. POST /v1/invoices/requests sends an
ad-hoc amount + memo to an email. The invoice turns paid only when a
confirmed onchain payment exists for one of its sessions (on read in the
API and in the new worker invoice-settle job) and emits invoice.paid.
Invoice and receipt PDFs render with pdfkit (MIT). Voiding cancels open
sessions. Dashboard gets a request-a-payment form, send buttons, pay
links and PDF downloads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Root cause: isomorphic ids.ts uses globalThis.crypto (a global only in Node 20+, per engines.node>=20). A Vercel project building on Node 18 has no global crypto, so any page generating an id at build time throws and the deploy fails.
- Add .node-version=20 to repo root + every app (Vercel reads it from each app's Root Directory) so deploys use Node 20.
- ids.ts: resolve Web Crypto lazily with an actionable error instead of a cryptic undefined access — still browser-safe (no node:crypto import).
- 1304 tests / 213 suites, typecheck + full build green.
Replace the dark blue→purple gradient SaaS look across all 7 apps with a
gradient-free settlement-ledger identity grounded in what SettleKit does:
reconcile money to the cent.
- Palette: greenbar ledger paper + ink, with accounting semantics
(credit-green / debit-red / ink-blue seal). No gradients or glows.
- Type: Archivo (display/body) + IBM Plex Mono carrying every number,
label and section reference; loaded via next/font in each app layout.
- Signature: apps/web hero is a live settlement statement — debit/credit
line items printing in sequentially with a rotated "SETTLED" stamp.
- apps/web fully rebuilt (globals, layout, components, pages); dashboard,
portal, marketplace, admin, checkout, docs rethemed by flipping :root
token values (component JSX untouched); shared packages/ui/theme.css
moved to the same system.
All 7 apps + @settlekit/ui build clean.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>