feat: generic checkout page — dynamic products + custom form fields + Stripe #55
Labels
No labels
domain:backend
domain:devops
domain:frontend
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forgejo_admin/westside-landing#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Type
Feature
Lineage
plan-wkq→ Phase 11 → girls jersey order → generic checkout systemRepo
forgejo_admin/westside-appUser Story
As a parent
I want to select a product, fill in required details, and pay via Stripe
So that I can order jerseys (and future products) without emailing back and forth
Context
The basketball-api now has a generic checkout system (issue #127) with products table, orders table, and dynamic custom_fields. This frontend consumes those endpoints:
GET /checkout/products?category=jersey— fetches product cardsPOST /checkout/create-session?token=...— creates Stripe session with custom_data?token=...&category=jersey)File Targets
Files the agent should modify or create:
src/routes/checkout/+page.svelte— main checkout page with dynamic product cards + form fieldssrc/routes/checkout/success/+page.svelte— order confirmation pagesrc/routes/checkout/cancel/+page.svelte— payment cancelled with retry linkFiles the agent should NOT touch:
src/routes/jersey/— legacy page, keep for backwards compatAcceptance Criteria
/checkout?token=...&category=jersey, I see 3 jersey product cardsTest Expectations
npm run buildConstraints
API_BASEfrom$lib/api.jsChecklist
Related
Westside Basketball— project