Skip to content

Add fake payment lifecycle API#11

Open
DanielButler1 wants to merge 1 commit into
tscircuit:mainfrom
DanielButler1:payment-lifecycle-api-1
Open

Add fake payment lifecycle API#11
DanielButler1 wants to merge 1 commit into
tscircuit:mainfrom
DanielButler1:payment-lifecycle-api-1

Conversation

@DanielButler1
Copy link
Copy Markdown

Summary

  • Add in-memory fake payment records with recipient, amount, currency, bounty metadata, status, timestamps, and optional idempotency keys.
  • Add send, list, get, complete, and cancel payment routes.
  • Make send retry-safe when the same idempotency key is reused.
  • Add route tests for create/list/get/complete and cancel flows.

/claim #1

Verification

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