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>
51 lines
2.0 KiB
Markdown
51 lines
2.0 KiB
Markdown
# 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.0–14.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.0–14.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)
|