Skip to content

Add fake payment API#55

Open
cuongwf1711 wants to merge 1 commit into
tscircuit:mainfrom
cuongwf1711:cuong/payment-api-bounty
Open

Add fake payment API#55
cuongwf1711 wants to merge 1 commit into
tscircuit:mainfrom
cuongwf1711:cuong/payment-api-bounty

Conversation

@cuongwf1711
Copy link
Copy Markdown

/claim #1

Summary

  • add in-memory fake payment records to the shared zod/zustand database schema
  • add Winterspec routes for sending, listing, looking up, and updating fake payment status
  • add idempotency-key replay support so retries do not create duplicate fake transfers
  • document the new payment endpoints in the README

Verification

All repo code was verified in Docker with oven/bun:1.2.15:

  • bun test -> 4 pass, 0 fail
  • bunx biome check lib/db/schema.ts lib/db/db-client.ts routes/payments tests/routes/payments.test.ts README.md -> clean
  • bun run build -> bundled successfully
  • bunx tsc --noEmit -> clean after build generated dist/bundle
  • git diff --check -> clean

AI-assisted with OpenAI Codex; I reviewed the diff and kept the implementation scoped. No private payout details are included here.

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