Skip to content

Add fake payment API#50

Open
kpoxo6op wants to merge 1 commit into
tscircuit:mainfrom
kpoxo6op:bounty/payment-api-issue-1
Open

Add fake payment API#50
kpoxo6op wants to merge 1 commit into
tscircuit:mainfrom
kpoxo6op:bounty/payment-api-issue-1

Conversation

@kpoxo6op
Copy link
Copy Markdown

Summary

  • add a Winterspec-native fake payments API with send, list, get, and complete routes
  • store fake payment records in the existing in-memory database
  • add idempotency-key replay protection so retrying /payments/send does not create duplicate fake transfers
  • document the payment routes in the README

/claim #1

Verification

  • npx --yes bun test
  • npx --yes bun test tests/routes/payments.test.ts
  • npx --yes bun x biome check lib/db/schema.ts lib/db/db-client.ts routes/payments tests/routes/payments.test.ts README.md
  • npx --yes bun run build
  • npx --yes tsc --noEmit
  • 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