Skip to content

Add fake payment API#18

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

Add fake payment API#18
loganoe wants to merge 1 commit into
tscircuit:mainfrom
loganoe:codex/fake-payment-api

Conversation

@loganoe
Copy link
Copy Markdown

@loganoe loganoe commented May 12, 2026

Summary

/claim #1

  • add in-memory fake payment records with pending/completed/cancelled statuses
  • add Winterspec routes for send, list, get, complete, and cancel payment flows
  • support idempotency keys so repeated send requests return the original payment
  • add route coverage for listing/filtering, fetching, idempotent sends, completion, and cancellation
  • document the fake payment endpoints in the README

Transparency: AI-assisted with Codex; I reviewed the diff and verification results.

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
  • bunx tsc --noEmit
  • bun run build
  • git diff --check

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