Skip to content

feat: add fake payment API#28

Open
autochamchikim-pixel wants to merge 1 commit into
tscircuit:mainfrom
autochamchikim-pixel:bounty/payment-api
Open

feat: add fake payment API#28
autochamchikim-pixel wants to merge 1 commit into
tscircuit:mainfrom
autochamchikim-pixel:bounty/payment-api

Conversation

@autochamchikim-pixel
Copy link
Copy Markdown

Summary

  • Adds fake payment persistence to the in-memory database.
  • Adds payment API routes for send, list, get, and status updates.
  • Supports amount dollars or amount_cents and idempotency keys for retry-safe sends.
  • Adds route tests covering send/list/get/update and duplicate idempotency behavior.

Test Plan

  • npm exec --yes tsc --noEmit --pretty false
  • npm exec --yes -- winterspec bundle --output dist/bundle.js
  • bun test tests/routes/payments/send.test.ts could not be run in this container because Bun is not installed.

Closes #1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bootstrap w/ API for sending payment

1 participant