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>
1.5 KiB
1.5 KiB
Phase Pay-Arch — Payment Architecture Prerequisites
| Field | Value |
|---|---|
| Phase ID | payment-arch |
| Title | Payment Architecture Prerequisites |
| Status | Complete (documentation-only) |
| Service | payment |
| ADR | ADR-021 (extends ADR-020) |
Purpose
Finalize all architectural prerequisites before payment-14.0 implementation so future phases never require breaking contract or licensing changes.
Deliverables
- ADR-021 — three-layer licensing, provider assignment, contract versioning
- payment-contracts.md — all v1 integration contracts + future reserved schemas
- Updated payment-roadmap.md — architecture verification section
- Updated module-boundaries.md — Payment platform section
- Updated event-catalog.md, services-contracts.md, authorization-architecture.md
- Service snapshot regenerated
Definition of Done
- All listed contracts documented with v1 JSON shapes
- Service compatibility matrix verified (no existing service code changes)
- Tenant enable/disable, PSP choice, mode switch documented as config-only
- No implementation of payment-14.0