Appearance
Database: Payment Integration
Version: 0.1
Date: 2026-11-16
Status: Skeleton / capability PROPOSED
Owner path (reserved): platform-payment/
DB id: db-payment
Tên: Payment Integration DB
Tên vật lý: payment (DECIDED — PostgreSQL schema name; D-022 / R3)
Architecture SoT: /architecture/07-shared-payment-and-invoice-services
1. Mục đích
Payment intent/giao dịch chuẩn hóa và xử lý webhook provider — tái sử dụng giữa Applications.
2. Engine / topology
| Hạng mục | Trạng thái |
|---|---|
| Engine | DECIDED PostgreSQL (D-022) |
| Tên vật lý | Schema payment (DECIDED) |
| Topology non-prod | Phương án A — cùng Postgres database, schema riêng (R4) |
Bảng/entity chi tiết vẫn OPEN (capability Payment PROPOSED).
3. Entity đề xuất (stub)
| Vùng | Ý định |
|---|---|
| Payment intents / charges | Số tiền, currency, status, ref workspace/application |
| Provider events | Inbox webhook idempotent |
| External provider IDs | Ref vendor mờ map sang ID MINAP có prefix |
4. Ngoài phạm vi
- Sổ kế toán đầy đủ trong Application
- UI riêng của từng provider
5. Câu hỏi mở
Provider, VietQR tự động vs thủ công, onboarding pháp lý — xem decision register.