Skip to content

Add fake payment lifecycle API#16

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

Add fake payment lifecycle API#16
SimoneMariaRomeo wants to merge 1 commit into
tscircuit:mainfrom
SimoneMariaRomeo:codex/fake-payment-lifecycle-api

Conversation

@SimoneMariaRomeo
Copy link
Copy Markdown

Summary

  • adds a Winterspec-native fake payment API for sending, listing, fetching, completing, and cancelling payments
  • stores fake payments in the existing in-memory DB with status timestamps and bounty metadata
  • makes send retry-safe when callers provide an idempotency key

Verification

  • bun x biome check lib\db\schema.ts lib\db\db-client.ts lib\payments\schemas.ts routes\payments tests\routes\payments
  • bun test
  • bun run build
  • bun x tsc --noEmit
  • git diff --check

/claim #1

@SimoneMariaRomeo
Copy link
Copy Markdown
Author

Verification is complete locally: bun test, build, type-check, Biome check on touched paths, and git diff --check all pass. The fake payment lifecycle API is ready for review/reward when convenient.

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