Skip to content

feat: add fake payment API#31

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

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

Conversation

@autochamchikim-pixel
Copy link
Copy Markdown

@autochamchikim-pixel autochamchikim-pixel commented May 13, 2026

Summary

  • Adds fake payment lifecycle routes: POST /payments/send, GET /payments/list, GET /payments/get, and POST /payments/update_status.
  • Extends the in-memory database schema/client with payment records, statuses, and idempotency-key deduplication.
  • Documents the payment API and adds Bun route coverage for send/list/get/update flow.

Validation

  • bun install
  • bun test tests/routes/health.test.ts tests/routes/things/create.test.ts tests/routes/payments.test.ts

Closes #1

Maintainer review notes

  • Adds the requested fake payment lifecycle endpoints without introducing external payment dependencies.
  • Uses in-memory records/idempotency to match the fake Algora testing purpose.
  • Documentation and route coverage are included to make manual review straightforward.

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