Skip to content

Add fake payment lifecycle API#20

Open
newmattock wants to merge 1 commit into
tscircuit:mainfrom
newmattock:codex/payment-api
Open

Add fake payment lifecycle API#20
newmattock wants to merge 1 commit into
tscircuit:mainfrom
newmattock:codex/payment-api

Conversation

@newmattock
Copy link
Copy Markdown

Summary

  • add in-memory fake payment records to the existing Zustand/zod database
  • add Winterspec payment routes for send, list, get, complete, and cancel
  • support retry-safe sends via idempotency_key
  • document the endpoint flow in the README

Verification

  • bun test tests/routes/payments.test.ts
  • bun test
  • bunx biome check lib/db/schema.ts lib/db/db-client.ts routes/payments tests/routes/payments.test.ts README.md
  • bun run build
  • bunx tsc --noEmit
  • git diff --check

/claim #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant