Skip to content

Add fake payment API#23

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

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

Conversation

@richboyneedcash
Copy link
Copy Markdown

Summary

  • add fake payment records to the in-memory zod/zustand database
  • add send/list/get/complete/cancel payment routes
  • make POST /payments/send retry-safe with optional idempotency_key
  • document the payment endpoints in the README

Validation

  • 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