Skip to content

Spun off from monorepo-tscom-rebuild (approved 2026-07-09). ts.com currently has no way to order or pay for any product — even digitally deliverable ones (b-Books, software, PDFs). The only path is a printable order form (OrderFormforAdvisors.pdf).

Seed design already exists: Core/_WorkingOn/Later/eCommerce Automation.md holds a Stripe headless-engine draft: Stripe as payment backend, Astro SSR/hybrid endpoints, digital-file delivery via webhooks, transactional email, CRM hooks, cross-sell/upsell. Read it first.

Risk is high because this changes site architecture (static → hybrid rendering), touches payments, and needs secrets handling — plan mode is required before implementation; architectural decisions escalate to Talbot per IT A1.

  • Plan first (plan mode): inventory the actual offerings (9 product pages in sites/ts) and classify: digital-deliverable / physical / service
  • Decide the minimal viable slice — e.g. Stripe Payment Links or Checkout for the top products before building the full engine (win: revenue capability without SSR migration; the full headless engine can follow)
  • Evaluate: Cloudflare Pages Functions vs full SSR adapter for the webhook/delivery endpoints (site currently output: 'static' on CF Pages)
  • Define secrets handling per SSOT rules (Stripe keys in exactly one .env, owned by the consuming app)
  • Present plan to Talbot before any implementation
  • Offering inventory + classification documented
  • Architecture decision (minimal slice vs full engine) approved by Talbot
  • Implementation plan with phases, then implement approved phase(s)
  • End-to-end test of a real purchase flow in Stripe test mode

Claude Response — 2026-07-10 (phase 1 implemented via parent task)

Section titled “Claude Response — 2026-07-10 (phase 1 implemented via parent task)”

Phase 1 implemented and committed (ed5604b) under monorepo-tscom-rebuild per Talbot’s “implement your plan” — full details + verification in that task file. Minimal slice shipped: static site + CF Pages Functions, Stripe Checkout (server-side pricing from products.json SSOT), /order + success flow, labeled mock provider when no STRIPE_SECRET_KEY. 21/21 Playwright + real-Stripe error path tested. Remaining phases: Talbot sets the Stripe key (test → live), taxes config, webhook-automated digital delivery, CRM hooks, upsells. Awaiting Talbot’s modification pass.