TorbatYar/docs/payment-phase-pay-reg.md
Mortezakoohjani 9fac160258 feat(payment): ship Torbat Pay MVP phases 14.0-14.5
Add independent payment-service (port 8012, payment_db) with foundation licensing, BYO-PSP, merchant accounts, idempotent requests, callbacks, and immutable ledger.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-27 17:57:04 +03:30

51 lines
2.0 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Phase Pay-Reg — Payment Platform Registration
| Field | Value |
| --- | --- |
| Phase ID | `payment-reg` |
| Title | Payment Platform Registration |
| Status | Complete (documentation-only) |
| Service | `payment` (registered; not yet implemented) |
| Commercial Product | Torbat Pay |
| ADR | [ADR-020](architecture/adr/ADR-020.md) |
## Purpose
Register the independent **Enterprise Payment Platform** (Torbat Pay) — service identity, database, phases 14.014.10, module inventory, boundaries, and manifests — without modifying any existing service code.
## Business Scope
- Document dual tenant payment modes: **BYO-PSP** and **Torbat Pay Merchant** (facilitator).
- Define platform-wide payment consumption pattern for Accounting, CRM, Hospitality, Sports Center, Marketplace, Delivery, Experience, Healthcare, Beauty Business, Automation, and future verticals.
- Reserve API port **8012** and database **`payment_db`**.
## Technical Scope
- ADR-020 accepted.
- Phases `payment-reg`, `payment-14.0``payment-14.10` registered in phase-manifest.
- Service entry in service-manifest and project-index.
- Module registry, roadmap, phase area README, service snapshot (registration state).
- Handover for next phase `payment-14.0`.
## Out of Scope
- Any code under `backend/services/payment`
- Alembic migrations, compose wiring, frontend checkout UI
- Real PSP SDK integrations (deferred to `payment-14.1+`)
## Definition of Done
- [x] ADR-020 published
- [x] [payment-roadmap.md](payment-roadmap.md) with complete phase 14.014.10 specifications
- [x] Phase documents under [phases/Payment/](phases/Payment/README.md)
- [x] Manifests, project index, module registry updated
- [x] Service snapshot generated (registration baseline)
- [x] Handover [phase-pay-reg.md](phase-handover/phase-pay-reg.md) complete
- [x] No existing business services modified
## Related Documents
- [Payment Roadmap](payment-roadmap.md)
- [ADR-020](architecture/adr/ADR-020.md)
- [Phase Handover Pay-Reg](phase-handover/phase-pay-reg.md)