BR / NFR Catalog

Detail of the requirement has been coded — source synchronized FSD/SAD/TC/RTM/UCChi tiết yêu cầu đã đánh mã — nguồn đồng bộ FSD/SAD/TC/RTM/UC

A. Document controlA. Kiểm soát tài liệu

Doc IDCPG-BR-NFR-CATALOG
VersionPhiên bản1.0
StatusTrạng tháiDraft
OwnerCPG BA / Architecture
AudienceĐối tượngBA, Product, Architecture, FlyPay Business
ClassificationPhân loạiInternal
Effective dateNgày hiệu lực01/12/2026
Related docs 01_BR Index · Module Map · Account RTM

B. Version historyB. Lịch sử phiên bản

Version Date Author ChangesThay đổi
1.0 01/12/2026 CPG Docs Pipeline Initial HTML publication

C. Table of contentsC. Mục lục

D. ContentD. Nội dung

FiltersBộ lọc

BR (252)

#Req IDProductModule DescriptionPriorityPhasePageNoteFSD
1BR-OVW-SEC-001OVWSEC
Security
Security & Risk Mitigation: Ensure Maximum Security for both Merchant and Gateway Provider through the ZERO principleSecurity & Risk Mitigation: Đảm bảo Maximum Security cho cả Merchant và Gateway Provider thông qua nguyên tắc ZEROMustP12—Doc03-application-security
2BR-OVW-UX-001OVWUX
UX & Localization
User Experience (UX): Provide a simple and convenient Merchant Onboarding and Integration process, allowing partnersUser Experience (UX): Cung cấp quy trình Merchant Onboarding và Integration đơn giản, tiện lợi, cho phép các đối tácMustP12—CPG-CRM_FSD_Merchant
3BR-OVW-GEN-001OVWGEN
Overview
Track on-chain transactions in real time.Theo dõi giao dịch On-chain theo thời gian thực.MustP13—UnmappedChưa map
4BR-OVW-GEN-002OVWGEN
Overview
View the report and reconcile.Xem báo cáo và đối soát.MustP13—UnmappedChưa map
5BR-OVW-API-001OVWAPI
API & Integration
Manage API keys.Quản lý API keys.MustP13—CPG-MP_FSD_Setting_Service
6BR-OVW-GEN-003OVWGEN
Overview
Handle Refunds according to the Non-custodial process.Xử lý Refunds theo quy trình Non-custodial.MustP13—UnmappedChưa map
7BR-OVW-GEN-004OVWGEN
Overview
Declare and manage receiving wallets according to the 'Hybrid' model.Khai báo và quản lý ví nhận tiền theo mô hình "Hybrid".MustP13—UnmappedChưa map
8BR-OVW-GEN-005OVWGEN
Overview
Allow merchants to bring their own wallet (BYOW - Bring Your Own Wallet).Cho phép Merchant tự mang ví của họ đến (BYOW - Bring Your Own Wallet).MustP15—UnmappedChưa map
9BR-OVW-GEN-006OVWGEN
Overview
Merchants can provide their Multi-sig (multi-signature) wallet address (e.g., Gnosis Safe) to receive revenue, ensuring securityMerchant có thể cung cấp địa chỉ ví Multi-sig (đa chữ ký) của họ (ví dụ: Gnosis Safe) để nhận doanh thu, đảm bảo an ninhMustP15—UnmappedChưa map
10BR-OVW-GEN-007OVWGEN
Overview
Allow the Merchant to create an Embedded Wallet directly on the Interface.Cho phép Merchant tạo Embedded Wallet ngay trên Giao diện.MustP15—UnmappedChưa map
11BR-OVW-API-002OVWAPI
API & Integration
The system must integrate the API of a Wallet-as-a-Service Provider (WaaS) (e.g., Web3Auth) so that the Merchant can create a convenient 'keyless' walletHệ thống phải tích hợp API của Wallet-as-a-Service Provider (WaaS) (ví dụ: Web3Auth) để Merchant tạo ví "keyless" tiện lợiMustP15—CPG-MP_FSD_Setting_Service
12BR-CRM-GEN-001CRMGEN
General
All feature groups (e.g., Merchant Management, AML Compliance, Finance) must be designed as separate ModulesTất cả các nhóm tính năng (ví dụ: Quản lý Merchant, Tuân thủ AML, Tài chính) phải được thiết kế dưới dạng các Module độcMustP16—UnmappedChưa map
13BR-CRM-GEN-002CRMGEN
General
All Dashboards (especially Home, Finance, System) must be designed in Widget format.Tất cả các Dashboard (đặc biệt là Trang chủ, Tài chính, Hệ thống) phải được thiết kế dạng Widget.MustP16—UnmappedChưa map
14BR-CRM-GEN-003CRMGEN
General
Requirement: Admin (with Super Admin rights) must have the ability to customize their Dashboard: drag-and-drop, hide/show Widgets toYêu cầu: Admin (với quyền Super Admin) phải có khả năng tùy chỉnh Dashboard của mình: kéo-thả, ẩn/hiện các Widget đểMustP16—UnmappedChưa map
15BR-CRM-MER-001CRMMER
Merchant Lifecycle
Merchant Management (CRUD): Create, view, edit, disable Merchant.Quản lý Merchant (CRUD): Tạo, xem, sửa, vô hiệu hóa Merchant.MustP17—CPG-CRM_FSD_Merchant
16BR-CRM-MER-002CRMMER
Merchant Lifecycle
Approval Workflow: Supports the Maker/Checker process for sensitive actions (for example: activationQuy trình Duyệt (Approval Workflow): Hỗ trợ quy trình Maker/Checker cho các hành động nhạy cảm (ví dụ: kích hoạtMustP17—CPG-CRM_FSD_Merchant
17BR-CRM-MER-003CRMMER
Merchant Lifecycle
Service Configuration (Service Config): Allows Admin to enable/disable Chains (e.g., Polygon, BNB Chain) or Tokens (e.g., USDT,Cấu hình Dịch vụ (Service Config): Cho phép Admin bật/tắt các Chain (ví dụ: Polygon, BNB Chain) hoặc Token (ví dụ: USDT,MustP17—CPG-CRM_FSD_Merchant
18BR-CRM-MER-004CRMMER
Merchant Lifecycle
Fee Configuration (Fee Config): Interface for Admin to configure the Fee rate (e.g., 1%) for MerchantsCấu hình Phí (Fee Config): Giao diện cho Admin cấu hình mức Fee (ví dụ: 1%) cho MerchantMustP17—CPG-CRM_FSD_Merchant
19BR-CRM-MER-005CRMMER
Merchant Lifecycle
Non-Custodial Wallet Approval (Wallet Address Approval):Duyệt Ví Non-Custodial (Wallet Address Approval):MustP17—CPG-CRM_FSD_Merchant
21BR-CRM-MER-006CRMMER
Merchant Lifecycle
When the Merchant declares or changes the receiving wallet address, the request must fall into the 'Pending' queueKhi Merchant khai báo hoặc thay đổi địa chỉ ví nhận tiền, yêu cầu phải rơi vào hàng đợi "Chờ duyệt" (PendingMustP17—CPG-CRM_FSD_Merchant
22BR-CRM-MER-007CRMMER
Merchant Lifecycle
The admin must verify (for example: via video call) and manually approve before the wallet address is updated.Admin phải xác minh (ví dụ: gọi video) và duyệt thủ công trước khi địa chỉ ví mới được cập nhật.MustP17—CPG-CRM_FSD_Merchant
23BR-CRM-TXN-001CRMTXN
Transaction & Reconciliation
Transaction Feed: Dashboard Widget displays all transactions (Pending, Success, Failed) over timeLuồng Giao dịch (Transaction Feed): Dashboard Widget hiển thị tất cả giao dịch (Pending, Success, Failed) theo thời gianMustP18—CPG-CRM_FSD_Transaction
24BR-CRM-TXN-002CRMTXN
Transaction & Reconciliation
Automatic Reconciliation Dashboard: Automatically reconciles in 3 ways:Bảng Đối soát Tự động (Reconciliation Dashboard): Dashboard tự động đối soát 3 chiều:MustP18—CPG-CRM_FSD_Transaction
25BR-CRM-TXN-003CRMTXN
Transaction & Reconciliation
On-chain data (scanned from the Scanner Service).Dữ liệu On-chain (từ Scanner Service quét được).MustP18—CPG-CRM_FSD_Transaction
26BR-CRM-TXN-004CRMTXN
Transaction & Reconciliation
Backend data (recorded from the Database).Dữ liệu Backend (từ Database ghi nhận).MustP18—CPG-CRM_FSD_Transaction
27BR-CRM-TXN-005CRMTXN
Transaction & Reconciliation
Treasury data (actual Fee money on Gnosis Safe).Dữ liệu Kho bạc (tiền Fee thực tế về Gnosis Safe).MustP18—CPG-CRM_FSD_Transaction
28BR-CRM-TXN-006CRMTXN
Transaction & Reconciliation
The system must automatically flag and alert if there is any discrepancy.Hệ thống phải tự động gắn cờ và cảnh báo nếu có bất kỳ sai lệch nào.MustP18—CPG-CRM_FSD_Transaction
29BR-CRM-CMP-001CRMCMP
Risk & Compliance
AML/KYT Dashboard (AML Dashboard): Integrates AML provider API (e.g., Sumsub/Crystal). Admin TuanBảng điều khiển AML/KYT (AML Dashboard): Tích hợp API của nhà cung cấp AML (ví dụ: Sumsub/Crystal). Admin TuânMustP19—CPG-CRM_FSD_Compliance
30BR-CRM-CMP-002CRMCMP
Risk & Compliance
Deposit transactions are flagged (e.g., high risk, from Mixer).Các giao dịch Deposit bị gắn cờ (ví dụ: rủi ro cao, từ Mixer).MustP19—CPG-CRM_FSD_Compliance
31BR-CRM-CMP-003CRMCMP
Risk & Compliance
Risk Score of the Merchant (based on their source of funds).Điểm rủi ro (Risk Score) của Merchant (dựa trên nguồn tiền của họ).MustP19—CPG-CRM_FSD_Compliance
32BR-CRM-CMP-004CRMCMP
Risk & Compliance
Compliance Actions: Admin must have a button to 'Freeze' or 'Disable'Hành động Tuân thủ (Compliance Actions): Admin phải có nút bấm để "Đóng băng" (Freeze) hoặc "Vô hiệu hóa" (Disable)MustP19—CPG-CRM_FSD_Compliance
33BR-CRM-CMP-005CRMCMP
Risk & Compliance
Risk Management Tool (Risk Rule Engine): Admin interface that allows configuration of Off-chain risk Rules (for example: "Alert"Công cụ Quản lý Rủi ro (Risk Rule Engine): Giao diện Admin cho phép cấu hình các Rule rủi ro Off-chain (ví dụ: "Cảnh báoMustP19—CPG-CRM_FSD_Compliance
34BR-CRM-FIN-001CRMFIN
Finance & Treasury
Treasury Dashboard: Read-only Widget, on-chain connection with the company's Gnosis SafeBảng điều khiển Kho bạc Gateway (Treasury Dashboard): Widget Read-only, kết nối On-chain với Gnosis Safe của công tyMustP110—CPG-CRM_FSD_Report
35BR-CRM-FIN-002CRMFIN
Finance & Treasury
Revenue Reports: Standard financial reports, allowing filtering by Merchant, Chain, Token, etc.Báo cáo Doanh thu (Revenue Reports): Các báo cáo tài chính chuẩn, cho phép lọc theo Merchant, Chain, Token, v.v.MustP110—CPG-CRM_FSD_Report
36BR-CRM-FIN-003CRMFIN
Finance & Treasury
(Optional) Gas Management Dashboard: If running a Gas sponsorship program, a Widget is required(Tùy chọn) Bảng điều khiển Quản lý Gas (Gas Station Dashboard): Nếu chạy chương trình tài trợ Gas thì cần có WidgetOptionalOptional10—CPG-CRM_FSD_Report
37BR-CRM-OPS-001CRMOPS
System Operations & Governance
Smart Contract Administration Dashboard (SC Governance):Bảng điều khiển Quản trị Smart Contract (SC Governance):MustP111—CPG-CRM_FSD_Setting_Proposal
38BR-CRM-OPS-002CRMOPS
System Operations & Governance
Admin (with the highest authority) has an Emergency Pause button to temporarily halt the entire payment Smart Contract (inAdmin (với quyền cao nhất) có nút bấm Emergency Pause để tạm dừng toàn bộ Smart Contract thanh toán (trongMustP111—CPG-CRM_FSD_Setting_Proposal
39BR-CRM-OPS-003CRMOPS
System Operations & Governance
Interface for Admin (e.g., Finance team) to propose changes to the system Fee (e.g., from 1% to 1.1%).Giao diện để Admin (ví dụ: team Finance) đề xuất thay đổi Fee hệ thống (ví dụ: từ 1% lên 1.1%).MustP111—CPG-CRM_FSD_Setting_Proposal
40BR-CRM-OPS-004CRMOPS
System Operations & Governance
Workflow: These buttons DO NOT execute immediately. They must create a Multi-sig transaction and send it to GnosisLuồng hoạt động: Các nút bấm này KHÔNG thực thi ngay. Chúng phải tạo một giao dịch Multi-sig và gửi đến GnosisMustP111—CPG-CRM_FSD_Setting_Proposal
41BR-CRM-OPS-005CRMOPS
System Operations & Governance
System Health Dashboard: Widget for DevOps to monitor:Bảng điều khiển Sức khỏe Hệ thống (System Health): Widget cho DevOps theo dõi:MustP111—CPG-CRM_FSD_Setting_Proposal
42BR-CRM-OPS-006CRMOPS
System Operations & Governance
Scanner Service status (e.g., "15 blocks behind on Polygon!").Trạng thái Scanner Service (ví dụ: "Đang trễ 15 blocks trên Polygon!").MustP111—CPG-CRM_FSD_Setting_Proposal
43BR-CRM-OPS-007CRMOPS
System Operations & Governance
API status of Node SaaS (Alchemy/Infura) and WaaS (Web3Auth).Trạng thái API của Node SaaS (Alchemy/Infura) và WaaS (Web3Auth).MustP111—CPG-CRM_FSD_Setting_Proposal
44BR-CRM-OPS-008CRMOPS
System Operations & Governance
Global Configuration (Global Config): The interface allows the Super Admin to enable/disable a Chain or Token for the entire Gateway.Cấu hình Toàn cục (Global Config): Giao diện cho phép Super Admin bật/tắt một Chain hoặc Token cho toàn bộ Gateway.MustP111—CPG-CRM_FSD_Setting_Proposal
45BR-CRM-SUP-001CRMSUP
Support & Reporting
Ticket System: Integrate the Ticket module for Admin to assist in receiving and responding to tickets created fromHệ thống Ticket (Ticket System): Tích hợp module Ticket để Admin Hỗ trợ nhận và phản hồi các ticket được tạo từMustP112—CPG-CRM_FSD_Ticket
46BR-CRM-SUP-002CRMSUP
Support & Reporting
Reporting: Module for creating custom reports (on transactions, Merchants, revenue...).Báo cáo (Reporting): Module tạo báo cáo tùy chỉnh (về giao dịch, Merchant, doanh thu...).MustP112—CPG-CRM_FSD_Ticket
47BR-MP-GEN-001MPGEN
General
Core Architecture: 100% Non-Custodial. The system is NOT designed with a 'Withdrawal' featureKiến trúc Cốt lõi (Core Architecture): 100% Non-Custodial. Hệ thống KHÔNG được thiết kế tính năng "Withdrawal"MustP113—UnmappedChưa map
48BR-MP-GEN-002MPGEN
General
CHOOSE WALLET MODEL: Merchants must be granted the right to select and activate BOTH models within the same Merchant ID:CHỌN MÔ HÌNH VÍ: Merchant phải được cấp quyền lựa chọn và kích hoạt CẢ HAI mô hình trong cùng Merchant ID:MustP113—UnmappedChưa map
49BR-MP-GEN-003MPGEN
General
PRO MODE (BYOW - Bring Your Own Wallet):MustP113—UnmappedChưa map
50BR-MP-GEN-004MPGEN
General
Definition: 100% Self-Custody configuration for Wallet Profiles prioritizing Absolute Control.Định nghĩa: Cấu hình Self-Custody 100% cho các Wallet Profile ưu tiên Absolute Control.MustP113—UnmappedChưa map
51BR-MP-GEN-005MPGEN
General
EASY MODE (WaaS - Wallet-as-a-Service):MustP113—UnmappedChưa map
52BR-MP-GEN-006MPGEN
General
Definition: Embedded Wallet configuration through WaaS for Wallet Profiles prioritizing Ease of Use and OperationalĐịnh nghĩa: Cấu hình Embedded Wallet thông qua WaaS cho các Wallet Profile ưu tiên Ease of Use và OperationalMustP113—UnmappedChưa map
53BR-MP-GEN-007MPGEN
General
Widget-Based Design (Widget-Based Dashboards): The main dashboard must be composed of customizable WidgetsThiết kế Dạng Widget (Widget-Based Dashboards): Dashboard chính phải là các Widget có thể customizableMustP113—UnmappedChưa map
54BR-MP-GEN-008MPGEN
General
Modular Architecture: Feature groups must be decoupled to facilitate maintenance and upgrades.Kiến trúc Module hóa (Modular Architecture): Các nhóm tính năng phải được decouple để dễ dàng bảo trì và nâng cấp.MustP113—UnmappedChưa map
55BR-MP-DSH-001MPDSH
Dashboard
Revenue Summary: Widget analytics (charts, KPIs) for revenue (converted to USD), filter by Chain, Token, and time frame.Revenue Summary: Widget analytics (charts, KPIs) cho revenue (quy đổi USD), filter theo Chain, Token, và time frame.MustP114—CPG-MP_FSD_Report
56BR-MP-DSH-002MPDSH
Dashboard
Treasury Balance (Competitive Feature):MustP114—CPG-MP_FSD_Report
57BR-MP-DSH-003MPDSH
Dashboard
A Read-only Widget performs On-chain read directly from the configured Settlement Addresses (from Module 2).Một Widget Read-only thực hiện On-chain read trực tiếp từ các Settlement Addresses đã config (từ Module 2).MustP114—CPG-MP_FSD_Report
58BR-MP-DSH-004MPDSH
Dashboard
Value: Provides a real-time balance feeling (like Custodial) while still being 100% Non-Custodial.Giá trị: Cung cấp cảm giác balance real-time (giống Custodial) trong khi vẫn 100% Non-Custodial.MustP114—CPG-MP_FSD_Report
59BR-MP-DSH-005MPDSH
Dashboard
Live Transaction Feed: Widget displaying the latest On-chain transactions (Pending, Success) populated from the ScannerLive Transaction Feed: Widget hiển thị các On-chain transactions mới nhất (Pending, Success) được populate từ ScannerMustP114—CPG-MP_FSD_Report
60BR-MP-DSH-006MPDSH
Dashboard
AML Risk Widget: Widget displays real-time alerts (for example: "3 new deposits flagged high risk score").AML Risk Widget: Widget surface các real-time alert (ví dụ: "3 deposits mới bị flag high risk score").MustP114—CPG-MP_FSD_Report
61BR-MP-DSH-007MPDSH
Dashboard
Developer Health: The read-only Widget displays API key status and webhook failure rate.Developer Health: Widget Read-only hiển thị API key status và webhook failure rate.MustP114—CPG-MP_FSD_Report
62BR-MP-WLT-001MPWLT
Wallet Management
UI Target: "For Businesses (BYOW). Requires technical knowledge. Connect your Gnosis Safe or Hardware Wallet"UI Target: "Dành cho Doanh nghiệp (BYOW). Yêu cầu kiến thức kỹ thuật. Kết nối Gnosis Safe hoặc Hardware Wallet của bạnMustP115—CPG-MP_FSD_Account
63BR-MP-WLT-002MPWLT
Wallet Management
UI Action: Input fields for Merchants to paste their Non-custodial settlement addresses (for each Chain).UI Action: Input fields để Merchant paste các Non-custodial settlement addresses của họ (cho từng Chain).MustP115—CPG-MP_FSD_Account
64BR-MP-WLT-003MPWLT
Wallet Management
Security Flow: Address status must display "Pending Admin Approval" (linked with Admin CRM Module 1) after submissionSecurity Flow: Address status phải hiển thị "Pending Admin Approval" (liên kết với Admin CRM Module 1) sau khi submitMustP115—CPG-MP_FSD_Account
65BR-MP-WLT-004MPWLT
Wallet Management
UI Target: "For Individuals/Small Shops. Create a convenient 'keyless' Embedded Wallet, protected by Social login."UI Target: "Dành cho Cá nhân/Shop nhỏ. Tạo một Embedded Wallet 'keyless' tiện lợi, bảo vệ bằng Social login."MustP115—CPG-MP_FSD_Account
66BR-MP-WLT-005MPWLT
Wallet Management
UI Action: Button (e.g., "Create Wallet with Google").UI Action: Nút bấm (ví dụ: "Create Wallet with Google").MustP115—CPG-MP_FSD_Account
67BR-MP-WLT-006MPWLT
Wallet Management
Integration: This button MUST trigger the WaaS (Wallet-as-a-Service) SDK (for example: Web3Auth). Merchant follows the onboarding flow ofIntegration: Nút này PHẢI trigger WaaS (Wallet-as-a-Service) SDK (ví dụ: Web3Auth). Merchant đi theo onboarding flow củaMustP115—CPG-MP_FSD_Account
68BR-MP-WLT-007MPWLT
Wallet Management
Result: The WaaS SDK returns the Public Address of the newly created MPC wallet. The UI automatically fills this address into the settlement config ofKết quả: WaaS SDK trả về Public Address của MPC wallet mới tạo. UI tự động fill address này vào settlement config củaMustP115—CPG-MP_FSD_Account
69BR-MP-TXN-001MPTXN
Transaction & Reporting
Transaction List: A read-only list view of all transactions (Pending, Success, Failed) with advanced filtering (byTransaction List: Một Read-only list view của tất cả transactions (Pending, Success, Failed) với advanced filtering (theoMustP116—CPG-MP_FSD_Transaction
70BR-MP-TXN-002MPTXN
Transaction & Reporting
Transaction Details (Competitive Feature): When drilling down on a transaction, the UI must have the following tabs:Transaction Details (Competitive Feature): Khi drill-down 1 transaction, UI phải có các tabs:MustP116—CPG-MP_FSD_Transaction
71BR-MP-TXN-003MPTXN
Transaction & Reporting
General: Amount, TXID (linked Etherscan), From Address, Gateway Fee (1% already collected)...General: Amount, TXID (linked Etherscan), From Address, Gateway Fee (đã thu 1%)...MustP116—CPG-MP_FSD_Transaction
72BR-MP-TXN-004MPTXN
Transaction & Reporting
Compliance Tab: Displays the AML risk score and flags of this deposit (via Read-only API call to the AML provider ofCompliance Tab: Hiển thị AML risk score và flags của deposit này (qua Read-only API call đến AML provider củaMustP116—CPG-MP_FSD_Transaction
73BR-MP-TXN-005MPTXN
Transaction & Reporting
CSV Exports: Module to generate and export custom reports (on transactions, revenue, fees) for accounting purposes.CSV Exports: Module để generate và export các report tùy chỉnh (về transaction, revenue, fee) cho mục đích accounting.MustP116—CPG-MP_FSD_Transaction
74BR-MP-RFD-001MPRFD
Refunds
Initiate Refund: Merchant initiates a refund from the original transaction detail view.Initiate Refund: Merchant initiate một refund từ transaction detail view gốc.MustP117—CPG-MP_FSD_Transaction
75BR-MP-RFD-002MPRFD
Refunds
Amount Input: The UI must support partial refund.Amount Input: UI phải hỗ trợ partial refund.MustP117—CPG-MP_FSD_Transaction
76BR-MP-RFD-003MPRFD
Refunds
Execution UI: The UI must clearly display:Execution UI: UI phải hiển thị rõ:MustP117—CPG-MP_FSD_Transaction
77BR-MP-RFD-004MPRFD
Refunds
Recipient Address (that is, the end customer).Recipient Address (tức là Khách hàng cuối).MustP117—CPG-MP_FSD_Transaction
78BR-MP-RFD-005MPRFD
Refunds
Amount and Token.Amount và Token.MustP117—CPG-MP_FSD_Transaction
79BR-MP-RFD-006MPRFD
Refunds
Gas Fee Warning: "You (Merchant) will pay the gas fee for this On-chain transaction from your own wallet."Gas Fee Warning: "Bạn (Merchant) sẽ thanh toán gas fee cho On-chain transaction này từ ví của mình."MustP117—CPG-MP_FSD_Transaction
80BR-MP-RFD-007MPRFD
Refunds
"Easy Mode" Integration (Competitive Feature):MustP117—CPG-MP_FSD_Transaction
81BR-MP-RFD-008MPRFD
Refunds
If the Merchant is using the "Easy Mode" wallet (WaaS), the UI MUST display the "Execute Refund" button.Nếu Merchant đang dùng ví "Easy Mode" (WaaS), UI PHẢI hiển thị nút "Execute Refund".MustP117—CPG-MP_FSD_Transaction
82BR-MP-RFD-009MPRFD
Refunds
This button will trigger the WaaS SDK, requiring the Merchant to approve the On-chain refund transaction (using Google/Face ID). Value:Nút này sẽ trigger WaaS SDK, yêu cầu Merchant approve On-chain refund transaction (dùng Google/Face ID). Giá trị:MustP117—CPG-MP_FSD_Transaction
83BR-MP-RFD-010MPRFD
Refunds
"Pro Mode" Proof-Linking:MustP117—CPG-MP_FSD_Transaction
84BR-MP-RFD-011MPRFD
Refunds
If the Merchant is using 'Pro Mode' (BYOW), the UI must provide an (optional) input field for them to paste the refund TXIDNếu Merchant đang dùng "Pro Mode" (BYOW), UI phải cung cấp một (optional) input field để họ paste refund TXIDOptionalOptional17—CPG-MP_FSD_Transaction
85BR-MP-RFD-012MPRFD
Refunds
This involves linking the refund transaction (they send it themselves from Gnosis Safe) to the original transaction for reconciliation.Việc này link refund transaction (họ tự gửi từ Gnosis Safe) vào transaction gốc để reconciliation.MustP117—CPG-MP_FSD_Transaction
86BR-MP-DEV-001MPDEV
Developer Hub
API Key Management: Full CRUD interface for API keys (with reset capability).API Key Management: Giao diện CRUD đầy đủ cho API keys (với khả năng reset).MustP118—CPG-MP_FSD_Setting_Service
87BR-MP-DEV-002MPDEV
Developer Hub
Webhook Management: Full CRUD interface for webhook endpoints.Webhook Management: Giao diện CRUD đầy đủ cho webhook endpoints.MustP118—CPG-MP_FSD_Setting_Service
88BR-MP-DEV-003MPDEV
Developer Hub
Webhook Logs: A log viewer that shows the webhook ping history, request/response payloads, and HTTP status codes (for debugging)Webhook Logs: Một log viewer hiển thị lịch sử ping webhook, request/response payloads, và HTTP status codes (để debugMustP118—CPG-MP_FSD_Setting_Service
89BR-MP-SET-001MPSET
Settings & Support
User Management (RBAC): The Merchant Admin role must be able to invite new members (e.g., Accountant, Support roles)User Management (RBAC): Merchant Admin role phải có thể invite các members mới (ví dụ: Accountant, Support roles)MustP118—CPG-MP_FSD_Setting_UR
90BR-MP-SET-002MPSET
Settings & Support
Security Settings: The merchant enables/disables 2FA for their Merchant Portal login.Security Settings: Merchant bật/tắt 2FA cho Merchant Portal login của họ.MustP118—CPG-MP_FSD_Setting_UR
91BR-MP-SET-003MPSET
Settings & Support
Ticket System: A module for Merchants to create support tickets (with priority, attachments) and view replies from Admin CRM.Ticket System: Một module để Merchant tạo support tickets (với priority, attachments) và xem replies từ Admin CRM.MustP118—CPG-MP_FSD_Setting_UR
92BR-MP-GEN-009MPGEN
General
Core Architecture: 100% Non-Custodial. Payment is a Peer-to-Contract transaction. End-User will send fund directly toCore Architecture: 100% Non-Custodial. Payment là một transaction Peer-to-Contract. End-User sẽ send fund trực tiếp đếnMustP119—UnmappedChưa map
93BR-MP-GEN-010MPGEN
General
Real-time Experience (Real-time): The Checkout UI must be able to respond in real-time to On-chain events (Pending,Real-time Experience (Thời gian thực): Checkout UI phải có khả năng phản hồi real-time với các On-chain event (Pending,MustP119—UnmappedChưa map
94BR-MP-GEN-011MPGEN
General
Intelligent Design: The UI must be intelligent, able to detect Chain, Wallet, and handle exceptions (for example: underpayment)Intelligent Design: UI phải intelligent, có khả năng detect Chain, Wallet và handle các exception (ví dụ: underpayment) mộtMustP119—UnmappedChưa map
95BR-CO-CHK-001COCHK
Checkout Interface
Iframe / Hosted Payment Page (HPP): The gateway must provide both options: an Iframe (embeddable) and a Hosted oneIframe / Hosted Payment Page (HPP): Gateway phải cung cấp cả hai tùy chọn: một Iframe (embeddable) và một HostedMustP120—UnmappedChưa map
96BR-CO-CHK-002COCHK
Checkout Interface
Dynamic Content: The UI must load dynamic information: Merchant Name/Logo, Amount, Token (e.g., USDT), Network (viDynamic Content: UI phải load các thông tin dynamic: Tên/Logo của Merchant, Amount, Token (ví dụ: USDT), Network (víMustP120—UnmappedChưa map
97BR-CO-CHK-003COCHK
Checkout Interface
Quote Timer (Best Practice): The UI must display a countdown timer (e.g., 15 minutes) for payment. When expired, the UI must lockQuote Timer (Best Practice): UI phải hiển thị một countdown timer (ví dụ: 15 phút) cho payment. Khi expired, UI phải lockMustP120—UnmappedChưa map
98BR-CO-GEN-001COGEN
General
UI displays QR code and raw address (address of the fee-splitting Smart Contract).UI hiển thị QR code và raw address (địa chỉ của fee-splitting Smart Contract).MustP121—UnmappedChưa map
99BR-CO-GEN-002COGEN
General
Network Warning (Mandatory): The UI must display a critical warning: "WARNING: ONLY SEND USDT ON THE POLYGON"Cảnh báo Network (Bắt buộc): UI phải hiển thị cảnh báo critical: "WARNING: ONLY SEND USDT ON THE POLYGONMustP121—UnmappedChưa map
100BR-CO-VER-001COVER
Payment Verification
WebSocket / Polling: The Checkout UI must subscribe to real-time channels (via WebSocket) with the Backend to receive statusWebSocket / Polling: Checkout UI phải subscribe channel Real-time (qua WebSocket) với Backend để nhận statusMustP122—UnmappedChưa map
101BR-CO-VER-002COVER
Payment Verification
Flow (Happy Path):MustP122—UnmappedChưa map
102BR-CO-VER-003COVER
Payment Verification
UI displays "Waiting for payment...".UI hiển thị "Waiting for payment...".MustP122—UnmappedChưa map
103BR-CO-VER-004COVER
Payment Verification
End-User broadcast transaction On-chain.MustP122—UnmappedChưa map
104BR-CO-VER-005COVER
Payment Verification
Scanner Service detects transactions in the mempool (Pending status).Scanner Service detect transaction trong mempool (trạng thái Pending).MustP122—UnmappedChưa map
105BR-CO-VER-006COVER
Payment Verification
Scanner -> Backend -> WebSocket -> UI update: "Payment Detected (Pending). Do not close this window."Scanner -> Backend -> WebSocket -> UI cập nhật: "Payment Detected (Pending). Do not close this window."MustP122—UnmappedChưa map
106BR-CO-VER-007COVER
Payment Verification
Transaction has been confirmed on-chain.Transaction được confirmed On-chain.MustP122—UnmappedChưa map
107BR-CO-VER-008COVER
Payment Verification
Scanner -> Backend -> WebSocket -> UI update: "Payment Successful!" (and redirect to the success page ofScanner -> Backend -> WebSocket -> UI cập nhật: "Payment Successful!" (và redirect về trang success củaMustP122—UnmappedChưa map
108BR-CO-VER-009COVER
Payment Verification
Overpayment (Excess payment): Scanner detects 101 USDT. Transaction is considered SUCCESSFUL. (Policy: AcceptOverpayment (Thanh toán thừa): Scanner detect 101 USDT. Transaction được coi là SUCCESSFUL. (Chính sách: AcceptMustP123—UnmappedChưa map
109BR-CO-VER-010COVER
Payment Verification
Timeout (Expired): Timer expired. UI displays "Quote expired. Please refresh."Timeout (Hết hạn): Timer hết hạn. UI hiển thị "Quote expired. Please refresh."MustP123—UnmappedChưa map
110BR-CO-XCH-001COXCH
Cross-chain Payment
Integrate the SDK of a Cross-chain Aggregator (e.g., Socket, Li.Fi).Tích hợp SDK của một Cross-chain Aggregator (ví dụ: Socket, Li.Fi).MustP224—UnmappedChưa map
111BR-CO-XCH-002COXCH
Cross-chain Payment
UI (from Module 2) must scan the End-User's balance across all chains.UI (từ Module 2) phải scan balance của End-User trên tất cả các chain.MustP224—UnmappedChưa map
112BR-CO-XCH-003COXCH
Cross-chain Payment
UI prompt: "We detected USDT on Ethereum. Would you like to 'Bridge & Pay'? (Estimated Cost: $10.50, Est. Time: 5 min)."MustP224—UnmappedChưa map
113BR-CO-XCH-004COXCH
Cross-chain Payment
If the End-User agrees, the SDK will abstract the entire flow (bridge + pay) into 1-2 signatures.Nếu End-User đồng ý, SDK sẽ abstract toàn bộ flow (bridge + pay) thành 1-2 signatures.MustP224—UnmappedChưa map
114BR-CORE-PER-001COREPER
Personnel
The backend system must be designed according to microservice architecture.Hệ thống backend bắt buộc phải được thiết kế theo microservice architecture.MustP125—UnmappedChưa map
115BR-CORE-CORR-001CORECORR
Correctness & Compliance
The main business domains (Merchant Management, Transaction Scanner, AML Risk Engine, API Gateway) must beCác domain nghiệp vụ chính (Merchant Management, Transaction Scanner, AML Risk Engine, API Gateway) phải đượcMustP125—UnmappedChưa map
116BR-CORE-PER-002COREPER
Personnel
The system is NOT allowed to self-host a full node.Hệ thống KHÔNG được self-host full node.MustP125—UnmappedChưa map
117BR-CORE-API-001COREAPI
API & Integration
The entire system (Scanner Service, Transaction Broadcaster) must be coded to use the Node provider's APIToàn bộ hệ thống (Scanner Service, Transaction Broadcaster) phải được code để sử dụng API của nhà cung cấp NodeMustP125—CPG-Core_FSD_Transaction
118BR-CORE-OPS-001COREOPS
Operations
Reason: Comply with the Hybrid Cloud model, reduce Opex costs and DevOps burden.Lý do: Tuân thủ mô hình Hybrid Cloud, giảm chi phí Opex và gánh nặng DevOps.MustP125—CPG-Core_FSD_Synchonizer
119BR-CORE-API-002COREAPI
API & Integration
The system is required to have a dedicated External API Gateway.Hệ thống bắt buộc phải có một External API Gateway chuyên biệt.MustP126—CPG-Core_FSD_Transaction
120BR-CORE-API-003COREAPI
API & Integration
This API Gateway is the only entry point for all public server-to-server API calls from Merchants and Partners.API Gateway này là entry point duy nhất cho tất cả các public server-to-server API call từ Merchants và Partners.MustP126—CPG-Core_FSD_Transaction
121BR-CORE-API-004COREAPI
API & Integration
The API Gateway is responsible for handling cross-cutting concerns such as:API Gateway phải chịu trách nhiệm xử lý các cross-cutting concerns như:MustP126—CPG-Core_FSD_Transaction
122BR-CORE-API-005COREAPI
API & Integration
Authentication (e.g., API key validation).Authentication (ví dụ: API key validation).MustP126—CPG-Core_FSD_Transaction
123BR-CORE-API-006COREAPI
API & Integration
Rate Limiting and Throttling.Rate Limiting và Throttling.MustP126—CPG-Core_FSD_Transaction
124BR-CORE-OBS-001COREOBS
Observability
Request Logging and Monitoring.Request Logging và Monitoring.MustP126—CPG_Monitoring_Stack
125BR-CORE-PER-003COREPER
Personnel
There must be a specialized microservice (Scanner Service) responsible for subscribing (via WebSocket or polling) to eventsPhải có một microservice chuyên biệt (Scanner Service) chịu trách nhiệm subscribe (qua WebSocket hoặc poll) các eventMustP126—UnmappedChưa map
126BR-CORE-DATA-001COREDATA
Data Management
This service will populate the off-chain database (read-replica/cache) to support dashboards and APIs.Service này sẽ populate database off-chain (read-replica/cache) để hỗ trợ các dashboard và API.MustP126—CPG-Core_FSD_Ledger
127BR-CORE-PER-004COREPER
Personnel
The backend must support WebSocket channels to push real-time status updates (Pending, Success) to the frontend (Merchant)Backend phải hỗ trợ WebSocket channels để push status update (Pending, Success) real-time đến Frontend (MerchantMustP126—UnmappedChưa map
128BR-CORE-SCALE-001CORESCALE
Scalability & Capacity
The entire backend (especially the Scanner Service) must be designed so that adding a new EVM-compatible chain (for example: Base,Toàn bộ backend (đặc biệt Scanner Service) phải được thiết kế để việc thêm một EVM-compatible chain mới (ví dụ: Base,MustP127—UnmappedChưa map
129BR-CORE-SCALE-002CORESCALE
Scalability & Capacity
Phase 1 (MVP) will ONLY support EVM-compatible chains.Giai đoạn 1 (MVP) sẽ CHỈ hỗ trợ các chain EVM-compatible.MustP127—UnmappedChưa map
130BR-CORE-SCOPE-001CORESCOPE
Scope & Settlement
Non-EVM chains (e.g., Bitcoin, Solana) are considered out-of-scope for Phase 1 and if needed in Phase 2, they must haveCác chain Non-EVM (ví dụ: Bitcoin, Solana) được coi là out-of-scope cho Giai đoạn 1 và nếu cần ở Giai đoạn 2 thì phải cóMustP227—CPG-Core_FSD_Ledger
131BR-CORE-API-007COREAPI
API & Integration
The entire system must be built according to the API-first paradigm.Toàn bộ hệ thống phải được xây dựng theo paradigm API-first.MustP128—CPG-Core_FSD_Transaction
132BR-CORE-API-008COREAPI
API & Integration
Admin CRM and Merchant CRM are frontend clients (React, Vue, ...) that use these internal APIs.Admin CRM và Merchant CRM là các client frontend (React, Vue, ...) sử dụng các internal API này.MustP128—CPG-Core_FSD_Transaction
133BR-CORE-API-009COREAPI
API & Integration
All public APIs (for Merchants and Partners) must be RESTful.Tất cả public API (cho Merchant và Partner) phải là RESTful.MustP128—CPG-Core_FSD_Transaction
134BR-CORE-API-010COREAPI
API & Integration
Authentication using API keys (via HTTP Header).Authentication sử dụng API keys (qua HTTP Header).MustP128—CPG-Core_FSD_Transaction
135BR-CORE-API-011COREAPI
API & Integration
Mandatory requirement: The system must provide asynchronous webhook callbacks for all important transaction eventsYêu cầu bắt buộc: Hệ thống phải cung cấp asynchronous webhook callbacks cho tất cả event transaction quan trọngMustP128—CPG-Core_FSD_Transaction
136BR-CORE-API-012COREAPI
API & Integration
All APIs must be documented using the OpenAPI Specification (v3.0+) (e.g., Swagger).Toàn bộ API phải được tài liệu hóa bằng OpenAPI Specification (v3.0+) (ví dụ: Swagger).MustP128—CPG-Core_FSD_Transaction
137BR-CORE-API-013COREAPI
API & Integration
This document must be interactive and publicly hosted.Tài liệu này phải interactive và được host công khai.MustP128—CPG-Core_FSD_Transaction
138BR-CORE-API-014COREAPI
API & Integration
The partner needs to hand over code examples or basic SDKs for popular backend stacks (for example: Node.js, Python, PHP).Đối tác cần bàn giao code examples hoặc các SDK cơ bản cho các backend stack phổ biến (ví dụ: Node.js, Python, PHP).MustP128—CPG-Core_FSD_Transaction
139BR-CORE-API-015COREAPI
API & Integration
Plugins for e-commerce platforms (for example: WooCommerce/WordPress) are an important deliverable of Phase 2.Plugin cho các platform e-commerce (ví dụ: WooCommerce/Wordpress) là một deliverable quan trọng của Giai đoạn 2.MustP228—CPG-Core_FSD_Transaction
140BR-CORE-PER-005COREPER
Personnel
Microservice architecture allows the use of polyglot architecture.Microservice architecture cho phép sử dụng polyglot architecture.MustP129—UnmappedChưa map
141BR-CORE-CORR-002CORECORR
Correctness & Compliance
Core Business Logic (Merchant Management, AML Module, Finance Module): Requires a mature, robust, type-safe stack (viCore Business Logic (Merchant Management, AML Module, Finance Module): Yêu cầu stack mature, robust, type-safe (víMustP129—UnmappedChưa map
142BR-CORE-API-016COREAPI
API & Integration
I/O-Heavy Services (External API Gateway, Scanner Service, WebSocket Service): Requires a stack with non-blocking I/O andI/O-Heavy Services (External API Gateway, Scanner Service, WebSocket Service): Yêu cầu stack có non-blocking I/O vàMustP129—CPG-Core_FSD_Transaction
143BR-CORE-PER-006COREPER
Personnel
Must use a modern JavaScript component-based framework.Phải sử dụng một component-based framework JavaScript hiện đại.MustP129—UnmappedChưa map
144BR-CORE-QUAL-001COREQUAL
Quality Gates
Primary DB for Transactions: Requires an RDBMS that ensures ACID compliance for financial records.Primary DB cho Transactions: Yêu cầu một RDBMS đảm bảo ACID compliance cho financial records.MustP129—Doc03-application-security
145BR-CORE-DATA-002COREDATA
Data Management
Caching / Session Storage: Requires an in-memory datastore to cache hot data (token price) and manage sessions.Caching / Session Storage: Yêu cầu một in-memory datastore để cache hot data (token price) và quản lý session.MustP129—CPG-Core_FSD_Ledger
146BR-CORE-QUAL-002COREQUAL
Quality Gates
Host public-facing, elastic, and outbound-heavy services.Host các service public-facing, elastic, và outbound-heavy.MustP130—Doc03-application-security
147BR-CORE-ARCH-001COREARCH
Architecture & Infra
Components required to be hosted on the Public Cloud:Các Component bắt buộc host trên Public Cloud:MustP130—CPG_SAD
148BR-CORE-API-017COREAPI
API & Integration
External API GatewayMustP130—CPG-Core_FSD_Transaction
149BR-CORE-PERF-001COREPERF
Performance
Scanner Service (required to run on the cloud to have low latency when calling the Node SaaS API)Scanner Service (bắt buộc chạy trên cloud để có low-latency khi call API của Node SaaS)MustP130—CPG_SAD
150BR-CORE-API-018COREAPI
API & Integration
WaaS Integration Service (API call service of Web3Auth / Magic.link)WaaS Integration Service (service call API của Web3Auth / Magic.link)MustP130—CPG-Core_FSD_Transaction
151BR-CORE-ARCH-002COREARCH
Architecture & Infra
Payment Checkout Frontend (Iframe / HPP – requires CDN and edge location)Payment Checkout Frontend (Iframe / HPP – cần CDN và edge location)MustP130—CPG_SAD
152BR-CORE-SEC-001CORESEC
Security
Host core business logic and sensitive data (complying with data residency and security control).Host các core business logic và sensitive data (tuân thủ data residency và security control).MustP130—Doc03-application-security
153BR-CORE-ARCH-003COREARCH
Architecture & Infra
Components required to be hosted on-premise:Các Component bắt buộc host trên On-premise:MustP130—CPG_SAD
154BR-CORE-DATA-003COREDATA
Data Management
Core Database (e.g., PostgreSQL cluster)Core Database (ví dụ: PostgreSQL cluster)MustP130—CPG-Core_FSD_Ledger
155BR-CORE-CORR-003CORECORR
Correctness & Compliance
Core Backend Microservices (Merchant Logic, AML Module, Finance Module)MustP130—UnmappedChưa map
156BR-CORE-ARCH-004COREARCH
Architecture & Infra
Admin CRM & Merchant CRM (application server cho portal)MustP130—CPG_SAD
157BR-CORE-OBS-002COREOBS
Observability
All backend microservices are required to be containerized (e.g., Docker).Tất cả backend microservices bắt buộc phải được containerized (ví dụ: Docker).MustP131—CPG_Monitoring_Stack
158BR-CORE-OBS-003COREOBS
Observability
You must use a container orchestration platform to manage deployment, scaling, and health for microservices.Phải sử dụng một container orchestration platform để quản lý deployment, scaling và health cho microservice.MustP131—CPG_Monitoring_Stack
159BR-CORE-OBS-004COREOBS
Observability
Proposal: Kubernetes (K8s).Đề xuất: Kubernetes (K8s).MustP131—CPG_Monitoring_Stack
160BR-CORE-SCALE-003CORESCALE
Scalability & Capacity
Topology must support Horizontal Pod Autoscaling (HPA) for stateless services.Topology phải hỗ trợ Horizontal Pod Autoscaling (HPA) cho các service stateless.MustP131—UnmappedChưa map
161BR-CORE-DR-001COREDR
Availability & DR
Database (e.g., PostgreSQL) must be deployed as a High Availability (HA) cluster.Database (ví dụ: PostgreSQL) phải deploy dưới dạng High Availability (HA) cluster.MustP131—CPG_SAD
162BR-CORE-DR-002COREDR
Availability & DR
Multi-AZ Deployment: Primary and Replica nodes must be in different Availability Zones (AZs)/physical servers, availableMulti-AZ Deployment: Primary và Replica nodes phải ở các Availability Zones (AZs)/physical server khác nhau, cóMustP131—CPG_SAD
163BR-CORE-OBS-005COREOBS
Observability
Backup: Must have Point-in-Time Recovery (PITR) allowing restore to any point within 30 days, and daily snapshots storedBackup: Phải có Point-in-Time Recovery (PITR) cho phép restore bất kỳ thời điểm nào trong 30 ngày, và daily snapshots lưuMustP131—CPG_Monitoring_Stack
164BR-CORE-OBS-006COREOBS
Observability
Set up a robust CI/CD pipeline (e.g., GitLab CI, Jenkins, GitHub Actions) to automatically build, test (unit/integration), and deployThiết lập CI/CD pipeline robust (ví dụ: GitLab CI, Jenkins, GitHub Actions) để tự động build, test (unit/integration), và deployMustP131—CPG_Monitoring_Stack
165BR-CORE-SCOPE-002CORESCOPE
Scope & Settlement
NFR-Scope1:MustP132—CPG-Core_FSD_Ledger
166BR-CORE-SCOPE-003CORESCOPE
Scope & Settlement
In scope: Merchant Portal, Admin CRM, External API Gateway, Payment Checkout (Iframe/HPP), Blockchain ScannerMustP132—CPG-Core_FSD_Ledger
167BR-CORE-SCOPE-004CORESCOPE
Scope & Settlement
NFR-Scope2:MustP132—CPG-Core_FSD_Ledger
168BR-CORE-SCOPE-005CORESCOPE
Scope & Settlement
Data domains must clarify:Data domains phải làm rõ:MustP132—CPG-Core_FSD_Ledger
169BR-CORE-SCOPE-006CORESCOPE
Scope & Settlement
On-chain Data: Smart Contract events (e.g., PaymentReceived).On-chain Data: Smart Contract events (ví dụ: PaymentReceived).MustP132—CPG-Core_FSD_Ledger
170BR-CORE-SCOPE-007CORESCOPE
Scope & Settlement
Off-chain Data: Merchant config, AML Risk Scores, API Keys, User Accounts (RBAC).MustP132—CPG-Core_FSD_Ledger
171BR-CORE-SCOPE-008CORESCOPE
Scope & Settlement
NFR-Scope3:MustP132—CPG-Core_FSD_Ledger
172BR-CORE-SCOPE-009CORESCOPE
Scope & Settlement
Settlement Engine is defined as an on-chain fee-splitting Smart Contract.Settlement Engine được định nghĩa là on-chain fee-splitting Smart Contract.MustP132—CPG-Core_FSD_Ledger
173BR-CORE-SCOPE-010CORESCOPE
Scope & Settlement
Reconciliation is an off-chain process to verify on-chain truth.Reconciliation là off-chain process verify on-chain truth.MustP132—CPG-Core_FSD_Ledger
174BR-CORE-DATA-004COREDATA
Data Management
8.1. Backup & RestoreMustP139—CPG-Core_FSD_Ledger
175BR-CORE-DATA-005COREDATA
Data Management
Use hourly incremental backups and periodic full backups (daily/weekly) to save storage space.Sử dụng incremental backup hàng giờ (hourly) và full backup định kỳ (ngày/tuần) để tiết kiệm dung lượng.MustP139—CPG-Core_FSD_Ledger
176BR-CORE-DATA-006COREDATA
Data Management
Apply deduplication and compression techniques to backup data.Áp dụng kỹ thuật deduplication và compression cho dữ liệu backup.MustP139—CPG-Core_FSD_Ledger
177BR-CORE-OBS-007COREOBS
Observability
Enable WAL/PITR (Write-Ahead Logging/Point-in-Time Recovery) and store on high-speed storage.Bật WAL/PITR (Write-Ahead Logging/Point-in-Time Recovery) và lưu trữ trên storage tốc độ cao.MustP139—CPG_Monitoring_Stack
178BR-CORE-DATA-007COREDATA
Data Management
Authenticate periodic backup restores (weekly/monthly) to ensure data can always be recovered.Xác thực restore backup định kỳ (tuần/tháng) để đảm bảo dữ liệu luôn có thể khôi phục.MustP139—CPG-Core_FSD_Ledger
179BR-CORE-DATA-008COREDATA
Data Management
8.2. Retention & ArchivalMustP139—CPG-Core_FSD_Ledger
180BR-CORE-OBS-008COREOBS
Observability
Hot data (hot data, e.g., transactions, realtime logs) is stored on high-speed storage for up to 90 days, then automaticallyData nóng (hot data, ví dụ: transactions, realtime logs) lưu trên storage tốc độ cao tối đa 90 ngày, sau đó tự độngMustP139—CPG_Monitoring_Stack
181BR-CORE-SCOPE-011CORESCOPE
Scope & Settlement
Long-term data such as transactions, settlements, refunds are stored for up to 7 years, gradually transferred to large-capacity storage, optimizedData dài hạn như transactions, settlements, refunds lưu trữ tới 7 năm, chuyển dần qua storage dung lượng lớn, tối ưuMustP139—CPG-Core_FSD_Ledger
182BR-CORE-DATA-009COREDATA
Data Management
KYC metadata & decisions are stored for a minimum period according to compliance standards (5–7 years) in the form of an object archive.KYC metadata & decisions lưu tối thiểu theo chuẩn compliance (5–7 năm) dạng object archive.MustP139—CPG-Core_FSD_Ledger
183BR-CORE-OBS-009COREOBS
Observability
Webhook logs & notifications are stored for 180 days on hot storage and then archived.Webhook logs & notifications lưu 180 ngày trên hot storage rồi archive.MustP139—CPG_Monitoring_Stack
184BR-CORE-OBS-010COREOBS
Observability
Application logs are stored for 30 or 90 days in hot storage, then archived according to policy.Application logs lưu 30 hoặc 90 ngày ở hot storage, archive sau đó theo policy.MustP139—CPG_Monitoring_Stack
185BR-CORE-DATA-010COREDATA
Data Management
8.3. Configurable RetentionMustP139—CPG-Core_FSD_Ledger
186BR-CORE-DATA-011COREDATA
Data Management
All retention times must be configured flexibly, centrally, and can be edited without changing the code or deployingMọi thời gian retention phải cấu hình linh hoạt, tập trung, có thể chỉnh sửa mà không cần thay đổi code hoặc deployMustP139—CPG-Core_FSD_Ledger
187BR-CORE-DATA-012COREDATA
Data Management
8.4. Data PartitioningMustP140—CPG-Core_FSD_Ledger
188BR-CORE-OBS-011COREOBS
Observability
Large data tables (transactions, logs, events,…) must be partitioned by time (day/month/year)Các bảng dữ liệu lớn (transactions, logs, events,…) bắt buộc phân vùng (partition) theo thời gian (ngày/tháng/năm)MustP140—CPG_Monitoring_Stack
189BR-CORE-DATA-013COREDATA
Data Management
The transfer of data between partitions or deletion/archiving must be automatic according to the retention policy, without causingViệc chuyển dữ liệu giữa các phân vùng hoặc xóa/archive phải tự động theo chính sách retention, không gâyMustP140—CPG-Core_FSD_Ledger
190BR-CORE-DATA-014COREDATA
Data Management
8.5. Schema Migration & IndexingMustP140—CPG-Core_FSD_Ledger
191BR-CORE-DATA-015COREDATA
Data Management
All schema migrations are performed online, ensuring backward/forward compatibility.Tất cả schema migration chỉ thực hiện online, đảm bảo backward/forward compatible.MustP140—CPG-Core_FSD_Ledger
192BR-CORE-DATA-016COREDATA
Data Management
Optimize indexes for frequent queries, reduce IOPS, increase processing speed, and use migration toolsTối ưu indexes cho các truy vấn thường xuyên, giảm IOPS, tăng tốc độ xử lý, và sử dụng các công cụ migrationMustP140—CPG-Core_FSD_Ledger
193BR-CORE-DATA-017COREDATA
Data Management
8.6. Automated Data LifecycleMustP140—CPG-Core_FSD_Ledger
194BR-CORE-DATA-018COREDATA
Data Management
Apply automatic delete/archive policies and optimize storage for all data, ensuring cost savings and complianceÁp dụng chính sách tự động xóa/archive và tối ưu hóa storage cho toàn bộ data, đảm bảo tiết kiệm chi phí và tuânMustP140—CPG-Core_FSD_Ledger
195BR-CORE-DATA-019COREDATA
Data Management
The archival process must be automated, ensuring data retrieval meets the committed SLA.Quy trình archival phải tự động hóa, bảo đảm truy xuất lại dữ liệu đúng SLA cam kết.MustP140—CPG-Core_FSD_Ledger
196BR-CORE-API-019COREAPI
API & Integration
The system must allow the Super Admin to adjust the default rate limit (for example: 600 rpm) for each merchant directly onHệ thống phải cho phép Super Admin điều chỉnh rate limit mặc định (ví dụ: 600 rpm) cho từng merchant ngay trênMustP143—CPG-Core_FSD_Transaction
197BR-CORE-API-020COREAPI
API & Integration
The External API Gateway must be able to load these custom rules flexibly without needing to redeploy the systemExternal API Gateway phải có khả năng load các custom rule này một cách linh hoạt mà không cần deploy lại hệMustP143—CPG-Core_FSD_Transaction
198BR-CORE-OBS-012COREOBS
Observability
The CRM Admin must have an interface that allows the Admin to configure data retention time (logs, transactions, ...) instead ofAdmin CRM phải có giao diện cho phép Admin tự cấu hình thời gian lưu giữ dữ liệu (logs, transactions, …) thay choMustP143—CPG_Monitoring_Stack
199BR-CORE-GEN-001COREGEN
General
Section balancing compliance and storage costs.Mục tiêu cân bằng compliance và chi phí storage.MustP143—UnmappedChưa map
200BR-CORE-OBS-013COREOBS
Observability
Fee logic (on-chain fee-splitting BPS, flat SaaS fee, ...) must allow per-merchant configuration on the Admin CRM,Logic về phí (on-chain fee-splitting BPS, SaaS fee phẳng, …) phải cho phép cấu hình per-merchant trên Admin CRM,MustP143—CPG_Monitoring_Stack
201BR-CORE-DATA-020COREDATA
Data Management
The main tables in RDBMS (e.g., transactions) must be designed to support high-speed read/write for real-time dashboardsCác bảng chính trong RDBMS (ví dụ: transactions) phải thiết kế hỗ trợ ghi/đọc tốc độ cao cho dashboard thời gianMustP144—CPG-Core_FSD_Ledger
202BR-CORE-DATA-021COREDATA
Data Management
Only store "hot" data (data ≤ 90 days). Mandatory to implement partitioning (table partitioning, for example: by day inChỉ lưu "hot" data (dữ liệu ≤ 90 ngày). Bắt buộc triển khai partitioning (phân vùng bảng, ví dụ: theo ngày trongMustP144—CPG-Core_FSD_Ledger
203BR-CORE-DATA-022COREDATA
Data Management
The automated batch job (cronjob) must run periodically to migrate "cold" data (> 90 days) out of the hot table into another tableBatch job tự động (cronjob) phải chạy định kỳ để migrate "cold" data (> 90 ngày) ra khỏi bảng nóng sang bảngMustP144—CPG-Core_FSD_Ledger
204BR-CORE-DATA-023COREDATA
Data Management
The section serves analytics and historical reporting without affecting real-time OLTP performance.Mục tiêu phục vụ analytics, báo cáo lịch sử mà không ảnh hưởng tới hiệu suất OL TP thời gian thực.MustP144—CPG-Core_FSD_Ledger
205BR-CORE-SEC-002CORESEC
Security
Personal Identifiable Information (PII, such as admin name, email, KYC...) must be stored in a separate database/schema (PII Vault) withThông tin nhận dạng cá nhân (PII, như tên admin, email, KYC...) phải lưu trong database/schema riêng (PII Vault) vớiMustP144—Doc03-application-security
206BR-CORE-DATA-024COREDATA
Data Management
The transaction database only stores user_id (non-PII) for linking.Database giao dịch chỉ lưu user_id (non-PII) để liên kết.MustP144—CPG-Core_FSD_Ledger
207BR-CORE-OPS-002COREOPS
Operations
The system is required to integrate a Feature Flag service (LaunchDarkly, Unleash, or custom-built).Hệ thống bắt buộc tích hợp dịch vụ Feature Flag (LaunchDarkly, Unleash, hoặc custom-built).MustP145—CPG-Core_FSD_Synchonizer
208BR-CORE-GEN-002COREGEN
General
Allow admin to perform canary release/emergency shutdown of problematic features (kill-switch) in production withoutCho phép admin thực hiện canary release/tắt khẩn cấp chức năng có vấn đề (kill-switch) trong production mà khôngMustP145—UnmappedChưa map
209BR-CORE-DEVOPS-001COREDEVOPS
Deployment & GitOps
Gateway must have an internal service to deploy, configure, and version fee-splitting contracts.Gateway phải có internal service để deploy, cấu hình và versioning các fee-splitting contract.MustP145—CPG_SAD
210BR-CORE-GEN-003COREGEN
General
The CRM admin must have a dashboard showing which merchant is using which contract version.Admin CRM phải có dashboard cho biết merchant nào đang dùng contract version nào.MustP145—UnmappedChưa map
211BR-CORE-OBS-014COREOBS
Observability
The observability stack integrates directly with on-call management tools (PagerDuty, Opsgenie, ...).Observability stack tích hợp trực tiếp với on-call management tool (PagerDuty, Opsgenie, ...).MustP145—CPG_Monitoring_Stack
212BR-CORE-ARCH-005COREARCH
Architecture & Infra
Alerts (e.g., SLO breach, Scanner lag > 5 minutes) automatically route to the correct responsible technical member.Alerts (ví dụ: SLO breach, Scanner lag > 5 phút) tự động định tuyến đúng thành viên kỹ thuật phụ trách.MustP145—CPG_SAD
213BR-CORE-PERF-002COREPERF
Performance
There are metrics monitoring health, latency, throughput, and error rate between components.Có metrics giám sát health, latency, throughput, error rate giữa các cấu phần.MustP145—CPG_SAD
214BR-CORE-OBS-015COREOBS
Observability
All backend microservices must expose the /metrics endpoint for Prometheus to scrape data.Tất cả backend microservices phải expose endpoint /metrics để Prometheus scrape dữ liệu.MustP146—CPG_Monitoring_Stack
215BR-CORE-GEN-004COREGEN
General
Instrumentation must use the standard Prometheus client library.Instrumentation phải dùng Prometheus client library chuẩn.MustP146—UnmappedChưa map
216BR-CORE-OBS-016COREOBS
Observability
Grafana is the only visualization tool for observability with 3 sources:Grafana là công cụ visualization duy nhất cho observability với 3 nguồn:MustP146—CPG_Monitoring_Stack
217BR-CORE-OBS-017COREOBS
Observability
Metrics: from PrometheusMetrics: từ PrometheusMustP146—CPG_Monitoring_Stack
218BR-CORE-OBS-018COREOBS
Observability
Logs: from Loki or ElasticLogs: từ Loki hoặc ElasticMustP146—CPG_Monitoring_Stack
219BR-CORE-GEN-005COREGEN
General
Traces: from Tempo/JaegerTraces: từ Tempo/JaegerMustP146—UnmappedChưa map
220BR-CORE-OBS-019COREOBS
Observability
Grafana dashboard must correlate both metrics, logs, and traces.Dashboard Grafana phải tương quan (correlate) cả metrics, logs và traces.MustP146—CPG_Monitoring_Stack
221BR-CORE-OBS-020COREOBS
Observability
IP, Device ID, User ID MUST NOT be used as Prometheus labels; only store them in structured logs (JSON) with correlationIdIP , Device ID, User ID KHÔNG được dùng làm Prometheus label; chỉ lưu vào structured log (JSON) với correlationIdMustP146—CPG_Monitoring_Stack
222BR-CORE-OBS-021COREOBS
Observability
All services (API Gateway, Merchant Service, Scanner…) must expose metrics according to the RED standard: Rate, Errors, Duration.Tất cả các service (API Gateway, Merchant Service, Scanner…) phải expose metrics theo chuẩn RED: Rate, Errors, Duration.MustP147—CPG_Monitoring_Stack
223BR-CORE-OBS-022COREOBS
Observability
Counter http_requests_total, labeled by service, endpoint, method, http_status_code, merchant_id (ifCounter http_requests_total, gắn nhãn theo service, endpoint, method, http_status_code, merchant_id (nếuMustP147—CPG_Monitoring_Stack
224BR-CORE-OBS-023COREOBS
Observability
Monitor the request rate (fail, reject) as well.Theo dõi cả request rate (fail, reject).MustP147—CPG_Monitoring_Stack
225BR-CORE-OBS-024COREOBS
Observability
Counter application-level errors (payment_failed, webhook_failed…), detailed reason (reason).Counter application-level errors (payment_failed, webhook_failed…), lý do chi tiết (reason).MustP147—CPG_Monitoring_Stack
226BR-CORE-OBS-025COREOBS
Observability
Monitor http_requests_total with 4xx/5xx status.Theo dõi http_requests_total với status 4xx/5xx.MustP147—CPG_Monitoring_Stack
227BR-CORE-OBS-026COREOBS
Observability
Histogram/Summary http_request_duration_seconds, label theo service, endpoint.MustP147—CPG_Monitoring_Stack
228BR-CORE-OBS-027COREOBS
Observability
Calculate p99, p95, p50 for requests and transaction execution time.Tính toán p99, p95, p50 cho các request và thời gian thực thi giao dịch.MustP147—CPG_Monitoring_Stack
229BR-CORE-OBS-028COREOBS
Observability
All hosts/pods (Kubernetes) must expose USE metrics: Utilization, Saturation, Errors.Tất cả host/pod (Kubernetes) phải expose metrics USE: Utilization, Saturation, Errors.MustP148—CPG_Monitoring_Stack
230BR-CORE-OBS-029COREOBS
Observability
Monitor CPU, Memory, Disk I/O, Network I/O.Theo dõi CPU, Memory, Disk I/O, Network I/O.MustP148—CPG_Monitoring_Stack
231BR-CORE-OBS-030COREOBS
Observability
Database: max_connections compared to active_connections, replication lag.Database: max_connections so với active_connections, replication lag.MustP148—CPG_Monitoring_Stack
232BR-CORE-OBS-031COREOBS
Observability
Queues (Redis/Kafka): queue_depth, consumer_lag.MustP148—CPG_Monitoring_Stack
233BR-CORE-OBS-032COREOBS
Observability
Sockets: socket_states (ESTABLISHED, TIME_WAIT,...) of the system and app.Sockets: socket_states (ESTABLISHED, TIME_WAIT,...) của hệ thống và app.MustP148—CPG_Monitoring_Stack
234BR-CORE-DR-003COREDR
Availability & DR
network_packet_loss, packet_drops, retransmits - including system and service packets.network_packet_loss, packet_drops, retransmits - bao gồm packet của hệ thống và dịch vụ.MustP148—CPG_SAD
235BR-CORE-CORR-004CORECORR
Correctness & Compliance
payment_processed_total: Counter theo merchant_id, chain, token, status (success, failed_aml,MustP149—UnmappedChưa map
236BR-CORE-OBS-033COREOBS
Observability
payment_value_usd: Gauge/Histogram theo merchant_id, chain, token.MustP149—CPG_Monitoring_Stack
237BR-CORE-OBS-034COREOBS
Observability
Including deals, orders that are abstracted into payment.Bao gồm các deal, order được abstract thành payment.MustP149—CPG_Monitoring_Stack
238BR-CORE-OBS-035COREOBS
Observability
gateway_fee_collected_total: Counter theo merchant_id, chain, token.MustP149—CPG_Monitoring_Stack
239BR-CORE-OBS-036COREOBS
Observability
gateway_fee_collected_usd: Counter theo chain, token.MustP149—CPG_Monitoring_Stack
240BR-CORE-OBS-037COREOBS
Observability
blockchain_scanner_lag_blocks: Gauge (chain), measures the difference between the head block (Node SaaS) andblockchain_scanner_lag_blocks: Gauge (chain), đo chênh lệch giữa head block (Node SaaS) vàMustP149—CPG_Monitoring_Stack
241BR-CORE-DR-004COREDR
Availability & DR
gas_relayer_wallet_balance: Gauge (chain, wallet_address).MustP149—CPG_SAD
242BR-CORE-OBS-038COREOBS
Observability
treasury_wallet_balance: Gauge (chain, token).MustP149—CPG_Monitoring_Stack
243BR-CORE-PERF-003COREPERF
Performance
external_api_request_duration_seconds: Histogram theo dependency (NodeSaaS_Alchemy, WaaS_Web3Auth,MustP150—CPG_SAD
244BR-CORE-PERF-004COREPERF
Performance
external_api_requests_total: Counter by dependency and status_code (4xx, 5xx).external_api_requests_total: Counter theo dependency và status_code (4xx, 5xx).MustP150—CPG_SAD
245BR-CORE-PERF-005COREPERF
Performance
interconnect_ping_latency_ms: Gauge by source (public_cloud), destination (on_premise); measure ping latency andinterconnect_ping_latency_ms: Gauge theo source (public_cloud), destination (on_premise); đo độ trễ ping vàMustP150—CPG_SAD
246BR-MP-WLT-008 NewMPWLT
Wallet Management
Payout Account tab/list/balances bound to Hot Wallet (FLOW-OUT1 trader payout custody).MustP115NewCPG-MP_FSD_Account
247BR-MP-WLT-009 NewMPWLT
Wallet Management
Create Payout Account: system-issued MPC address; one per Active HW; post-create Inactive.MustP115NewCPG-MP_FSD_Account
248BR-MP-WLT-010 NewMPWLT
Wallet Management
Configure payout_cap with dual-approve (≠ maker) + step-up 2FA.MustP115NewCPG-MP_FSD_Account
249BR-MP-WLT-011 NewMPWLT
Wallet Management
Payout Account activate/deactivate; outbound trader payout only (no refunds).MustP115NewCPG-MP_FSD_Account
250BR-MP-WLT-012MPWLT
Wallet Management
Refund Account tab/list/balances bound to Hot Wallet (FLOW-OUT1 refund custody).MustP115—CPG-MP_FSD_Account
251BR-MP-WLT-013MPWLT
Wallet Management
Create Refund Account: system-issued MPC address; one per Active HW; post-create Inactive.MustP115—CPG-MP_FSD_Account
252BR-MP-WLT-014MPWLT
Wallet Management
Configure refund_cap with dual-approve (≠ maker) + step-up 2FA.MustP115—CPG-MP_FSD_Account
253BR-MP-WLT-015MPWLT
Wallet Management
Refund Account activate/deactivate; outbound customer refund whitelist only (no trader payout).MustP115—CPG-MP_FSD_Account

NFR (57)

#Req IDProductModule DescriptionPriorityPhasePageNoteFSD
1NFR-RBAC-001CRMRBAC
System-Wide RBAC
The BA must design a detailed permission system.BA phải thiết kế một hệ thống phân quyền chi tiết.MustP112—CPG-CRM_FSD_Setting_URG
2NFR-RBAC-002CRMRBAC
System-Wide RBAC
Support Admin can only see Module 6 (Support & Reporting) and Module 1 (Merchant Management) in Read-only mode.Support Admin chỉ thấy Module 6 (Hỗ trợ & Báo cáo) và Module 1 (Quản lý Merchant) ở chế độ Read-only.MustP112—CPG-CRM_FSD_Setting_URG
3NFR-RBAC-003CRMRBAC
System-Wide RBAC
Finance Admin only sees Module 2 (Transactions & Reconciliation) and Module 4 (Finance & Treasury).Finance Admin chỉ thấy Module 2 (Giao dịch & Đối soát) và Module 4 (Tài chính & Kho bạc).MustP112—CPG-CRM_FSD_Setting_URG
4NFR-RBAC-004CRMRBAC
System-Wide RBAC
Compliance Admin only sees Module 3 (Risk & Compliance).Compliance Admin chỉ thấy Module 3 (Rủi ro & Tuân thủ).MustP112—CPG-CRM_FSD_Setting_URG
5NFR-RBAC-005CRMRBAC
System-Wide RBAC
Only Super Admin can see Module 5 (System Operation & Administration).Chỉ Super Admin mới thấy Module 5 (Vận hành & Quản trị Hệ thống).MustP112—CPG-CRM_FSD_Setting_URG
6NFR-P1COREPERF
Performance
API p95 latency ≤ 300 ms (read endpoints); ≤ 600 ms (write endpoints).MustP133—CPG_SAD
7NFR-P2COREPERF
Performance
Web UI initial load (LCP) ≤ 2.5 s; TTI ≤ 4 s.MustP133—CPG_SAD
8NFR-P3COREPERF
Performance
Scanner Service Benchmark: Must be able to process at least 100 on-chain TPS (for example: 10 chains * 10 tx/block).Scanner Service Benchmark: Phải có khả năng process ít nhất 100 on-chain TPS (ví dụ: 10 chain * 10 tx/block).MustP133—CPG_SAD
9NFR-P4COREPERF
Performance
Scanner Service Latency: P95 Event Detection Latency (block confirmation → DB write) ≤ 15 seconds (for chains with a 3-second block time).Scanner Service Latency: P95 Event Detection Latency (block confirmation → DB write) ≤ 15 giây (cho chain có block time 3 giây).MustP133—CPG_SAD
10NFR-S1COREPERF
Performance
Stateless services must support horizontal scaling through HPA (CPU/RPS/queue depth).Stateless services phải hỗ trợ horizontal scale qua HPA (CPU/RPS/queue depth).MustP133—CPG_SAD
11NFR-S2COREPERF
Performance
DB read scale qua read replicas.MustP133—CPG_SAD
12NFR-S3COREPERF
Performance
Queue-first design for spikes; backpressure with fixed worker pools.Queue-first design cho spikes; backpressure với fixed worker pools.MustP133—CPG_SAD
13NFR-C1COREPERF
Performance
There is a 12-month growth buffer for storage.Có 12-month growth buffer cho storage.MustP133—CPG_SAD
14NFR-C2COREPERF
Performance
There must be an SLA contract with the Node SaaS provider (for example: Alchemy) to ensure the request rate limit is sufficient for NFR-P3 & NFR-P4.Phải có contract SLA với Node SaaS provider (ví dụ: Alchemy) đảm bảo rate limit request đủ cho NFR-P3 & NFR-P4.MustP133—CPG_SAD
15NFR-A1COREDR
Availability & DR
Service availability ≥ 99.9% monthly (Portal & APIs).MustP134—CPG_SAD
16NFR-A2COREDR
Availability & DR
Critical paths (Payment Checkout, Scanner Service event ingestion, webhook delivery) ≥ 99.95%.MustP134—CPG_SAD
17NFR-R1COREDR
Availability & DR
Idempotency keys for all critical write APIs (for example: create API key, submit wallet address).Idempotency keys cho tất cả critical write API (ví dụ: create API key, submit wallet address).MustP134—CPG_SAD
18NFR-R2COREDR
Availability & DR
Hybrid Cloud Resilience: Services on the Public Cloud (e.g., Scanner) must have a local queue/cache mechanism to bufferHybrid Cloud Resilience: Service trên Public Cloud (ví dụ: Scanner) phải có cơ chế local queue/cache để bufferMustP134—CPG_SAD
19NFR-DR1COREDR
Availability & DR
RPO ≤ 5 minutes (DB PITR, queue durability).RPO ≤ 5 phút (DB PITR, queue durability).MustP134—CPG_SAD
20NFR-DR2COREDR
Availability & DR
RTO ≤ 1 hour (infrastructure as code, automated restore/playbooks).RTO ≤ 1 giờ (infra as code, automated restore/playbooks).MustP134—CPG_SAD
21NFR-DR3COREDR
Availability & DR
Annual DR drill; document gaps and remediationAnnual DR drill; document gaps và remediationMustP134—CPG_SAD
22NFR-CC1CORESCOPE
Scope & Settlement
On-chain state (Smart Contract events) is the only System of Truth. Off-chain database is just denormalizedOn-chain state (Smart Contract events) là System of Truth duy nhất. Off-chain database chỉ là denormalizedMustP135—CPG-Core_FSD_Ledger
23NFR-CC2CORESCOPE
Scope & Settlement
There must be a daily batch job to compare all transactions in the off-chain DB with on-chain data (re-scan from the SaaS Node) to detect missed events.Phải có batch job chạy hàng ngày để compare tất cả transaction trong off-chain DB với on-chain data (scan lại từ Node SaaS) để detect missed event.MustP135—CPG-Core_FSD_Ledger
24NFR-CC3CORESCOPE
Scope & Settlement
Monetary precision: use integer minor units (wei/atomic units); do not use floating point in persistence.Monetary precision: dùng integer minor units (wei/atomic units); không dùng floating point trong persistence.MustP135—CPG-Core_FSD_Ledger
25NFR-CC4CORESCOPE
Scope & Settlement
AML/KYT Consistency: AML service (Sumsub/Crystal) must process the transaction after it is confirmed on-chain, andAML/KYT Consistency: AML service (Sumsub/Crystal) phải process transaction sau khi confirmed on-chain, vàMustP135—CPG-Core_FSD_Ledger
26NFR-Sec1CORESEC
Security
TLS 1.3 everywhere; HSTS on public endpoints.TLS 1.3 everywhere; HSTS trên public endpoints.MustP136—Doc03-application-security
27NFR-Sec2CORESEC
Security
Encryption at rest: DB, object storage, backups (AES-256).MustP136—Doc03-application-security
28NFR-Sec3CORESEC
Security
Secret management qua Vault / KMS / HSM.MustP136—Doc03-application-security
29NFR-Sec4CORESEC
Security
RBAC with least privilege; admin actions 2FA; sensitive actions step-up OTP.RBAC với least privilege; admin actions 2FA; sensitive actions step-up OTP .MustP136—Doc03-application-security
30NFR-Sec5CORESEC
Security
WAF + DDoS protection; rate limiting (per IP , per merchant).MustP136—Doc03-application-security
31NFR-Sec6CORESEC
Security
All code handed over by partners must fully meet security standards and software development processesTất cả code bàn giao bởi đối tác phải đáp ứng đầy đủ các tiêu chuẩn bảo mật và quy trình phát triển phần mềmMustP136—Doc03-application-security
32NFR-SC1CORESEC
Security
Smart Contract Governance: All Smart Contracts (fee-splitting) must be immutable OR follow the proxy patternSmart Contract Governance: Tất cả Smart Contract (fee-splitting) phải immutable HOẶC tuân theo proxy patternMustP136—Doc03-application-security
33NFR-SC2CORESEC
Security
Admin Control: All privileged functions (pause/setFee/upgrade) must be owned by Gnosis Safe (multi-sig), strictly prohibited for EOA admin control.Admin Control: Mọi function privileged (pause/setFee/upgrade) phải owned bởi Gnosis Safe (multi-sig), nghiêm cấm EOA admin control.MustP136—Doc03-application-security
34NFR-SC3CORESEC
Security
Slither + Echidna fuzzing before deployment; external audit for production.Slither + Echidna fuzzing trước deployment; external audit cho production.MustP136—Doc03-application-security
35NFR-Sec8CORESEC
Security
WaaS Integration Security: API key calling WaaS provider (Web3Auth, ...) must be stored in Secret Manager and onlyWaaS Integration Security: API key call WaaS provider (Web3Auth, ...) phải lưu trong Secret Manager và chỉMustP136—Doc03-application-security
36NFR-Obs1COREOBS
Observability
Centralized logs (JSON format) have correlationId (requestId, merchantId, txHash).Centralized logs (định dạng JSON) có correlationId (requestId, merchantId, txHash).MustP137—CPG_Monitoring_Stack
37NFR-Obs2COREOBS
Observability
Tracing: end-to-end distributed tracing (UI→API→workers→RPC).MustP137—CPG_Monitoring_Stack
38NFR-Obs3COREOBS
Observability
Alerting: SLO-based alerts (error budget burn), queue backlog thresholds, RPC health.MustP137—CPG_Monitoring_Stack
39NFR-Obs4COREOBS
Observability
Audit trails must be immutable, retrievable, and have a minimum retention of 2 years (or according to the prescribed policy).Audit trails phải immutable, truy xuất được và retention tối thiểu 2 năm (hoặc theo chính sách quy định).MustP137—CPG_Monitoring_Stack
40NFR-Dep1COREDR
Availability & DR
All external dependencies (Node SaaS provider, AML provider, WaaS provider, Mail/SMS) must be presentTất cả external dependencies (Node SaaS provider, AML provider, WaaS provider, Mail/SMS) bắt buộc phải cóMustP138—CPG_SAD
41NFR-Dep2COREDR
Availability & DR
Retries must use jitter/back-off; max retry window ≤ 2 minutes (for user flows), ≤ 15 minutes (for batch).Retries phải sử dụng jitter/back-off; max retry window ≤ 2 phút (cho user flows), ≤ 15 phút (cho batch).MustP138—CPG_SAD
42NFR-API1COREAPI
API & Integration
Use REST/JSON standard; API documented with OpenAPI v3; POSTs must be idempotent acrossSử dụng chuẩn REST/JSON; API tài liệu hóa bằng OpenAPI v3; các POST phải idempotent quaMustP141—CPG-Core_FSD_Transaction
43NFR-API2COREAPI
API & Integration
Pagination, filtering, and sorting are standardized; the error model has stable error codes.Pagination, filtering, sorting được chuẩn hóa; error model có mã lỗi ổn định.MustP141—CPG-Core_FSD_Transaction
44NFR-API3COREAPI
API & Integration
Support IP allow-listing for each merchant; rate limit on API per merchant (default 600 requests/minute).Hỗ trợ IP allow-listing từng merchant; rate limit trên API từng merchant (mặc định 600 request/phút).MustP141—CPG-Core_FSD_Transaction
45NFR-UX1COREGEN
General
Users only see modules related to their role; sensitive values are hidden by default.Người dùng chỉ thấy các module liên quan tới vai trò; giá trị nhạy cảm bị che mặc định.MustP141—UnmappedChưa map
46NFR-UX3COREGEN
General
Mandatory 2 languages (EN+Khmer); support for locale formatting for currency/number/date; specific timezone onBắt buộc 2 ngôn ngữ (EN+Khmer); hỗ trợ định dạng locale cho tiền tệ/number/date; timezone cụ thể trênMustP141—UnmappedChưa map
47NFR-M1COREQUAL
Quality Gates
Code quality gates (lint, unit, integration, contract tests) are mandatory to merge code.Code quality gates (lint, unit, integration, contract tests) bắt buộc để merge code.MustP141—Doc03-application-security
48NFR-M2COREQUAL
Quality Gates
Minimum unit test coverage: Core ≥ 80%, smart contract (critical) ≥ 90%.Coverage unit test tối thiểu: Core ≥ 80%, smart contract (critical) ≥ 90%.MustP141—Doc03-application-security
49NFR-M3COREDEVOPS
Deployment & GitOps
Zero-downtime deploys (blue-green/canary); automatic rollback when SLO is violated.Zero-downtime deploys (blue-green/canary); tự động rollback khi vi phạm SLO.MustP141—CPG_SAD
50NFR-Dev1COREQUAL
Quality Gates
Use immutable images for deployment.Dùng immutable images cho deployment.MustP142—Doc03-application-security
51NFR-Dev2COREQUAL
Quality Gates
CI/CD deploys through staged approvals; the production environment requires a minimum of 2 people to review contractsCI/CD triển khai qua staged approvals; môi trường production yêu cầu review tối thiểu 2 người đối với contractsMustP142—Doc03-application-security
52NFR-Dev3COREQUAL
Quality Gates
Do not store secrets in the repo; only use short-lived tokens.Không lưu secrets trong repo; chỉ sử dụng short-lived tokens.MustP142—Doc03-application-security
53NFR-Dev4COREDATA
Data Management
Database migrations run as jobs; preflight smoke tests must be run for each release.Database migrations chạy dưới dạng jobs; phải chạy preflight smoke tests cho mỗi release.MustP142—CPG-Core_FSD_Ledger
54NFR-Dev5COREQUAL
Quality Gates
The CI/CD pipeline must support deploying artifacts to both Public Cloud (K8s cluster) and On-premise (K8s cluster) environments.CI/CD pipeline phải hỗ trợ deploy artifact đến cả Public Cloud (K8s cluster) và On-premise (K8s cluster) sử dụngMustP142—Doc03-application-security
55NFR-Guard1COREAPI
API & Integration
Apply global system limits and merchant-specific limits; there must be anomaly detection for spikesÁp dụng giới hạn toàn hệ thống (global) và giới hạn theo merchant; phải có anomaly detection cho các độtMustP142—CPG-Core_FSD_Transaction
56NFR-KYC1COREAPI
API & Integration
Do not activate Merchant service (authorize Smart Contract to receive payment) or generate production APIKhông cho activate Merchant service (cấp phép Smart Contract nhận payment) hoặc generate production APIMustP142—CPG-Core_FSD_Transaction
57NFR-KYC2COREDEP
Dependencies
Sumsub's webhook must be HMAC authenticated; supports retry and dead-letter queue on failureWebhook của Sumsub phải được xác thực HMAC; hỗ trợ retry và dead-letter queue khi thất bạiMustP142—CPG_SAD

REQ (24)

#Req IDProductModule DescriptionPriorityPhasePageNoteFSD
1REQ-CFG-1COREAPI
API & Integration
Configurable Rate LimitsMustP143—CPG-Core_FSD_Transaction
2REQ-CFG-2COREDATA
Data Management
Configurable Retention PoliciesMustP143—CPG-Core_FSD_Ledger
3REQ-CFG-3COREGEN
General
Configurable Fee TiersMustP143—UnmappedChưa map
4REQ-DATA-1COREDATA
Data Management
Database Partitioning (Hot/Cold Strategy)MustP144—CPG-Core_FSD_Ledger
5REQ-DATA-2COREDATA
Data Management
Automated Archival JobMustP144—CPG-Core_FSD_Ledger
6REQ-DATA-3CORESEC
Security
Data Segregation (PII Vault)MustP144—Doc03-application-security
7REQ-OPS-1COREOPS
Operations
Feature Flag / Toggling SystemMustP145—CPG-Core_FSD_Synchonizer
8REQ-OPS-2COREGEN
General
Smart Contract Factory & VersioningMustP145—UnmappedChưa map
9REQ-OPS-3COREOPS
Operations
Alerting & On-Call IntegrationMustP145—CPG-Core_FSD_Synchonizer
10REQ-OPS-4COREGEN
General
Interconnect MonitoringMustP145—UnmappedChưa map
11REQ-OBS-1COREARCH
Architecture & Infra
Prometheus-Native StackMustP146—CPG_SAD
12REQ-OBS-2COREGEN
General
Grafana Single-Pane-of-GlassMustP146—UnmappedChưa map
13REQ-OBS-3COREDATA
Data Management
High-Cardinality DataMustP146—CPG-Core_FSD_Ledger
14REQ-OBS-4COREOBS
Observability
Rate (R)MustP147—CPG_Monitoring_Stack
15REQ-OBS-5COREOBS
Observability
Errors (E)MustP147—CPG_Monitoring_Stack
16REQ-OBS-6COREOBS
Observability
Duration (D)MustP147—CPG_Monitoring_Stack
17REQ-OBS-7COREOBS
Observability
Utilization (U) & Saturation (S)MustP148—CPG_Monitoring_Stack
18REQ-OBS-8COREOBS
Observability
Network Errors (E)MustP148—CPG_Monitoring_Stack
19REQ-OBS-9COREOBS
Observability
Transaction & Order MetricsMustP149—CPG_Monitoring_Stack
20REQ-OBS-10COREOBS
Observability
Gateway Revenue MetricsMustP149—CPG_Monitoring_Stack
21REQ-OBS-11COREOBS
Observability
On-Chain Operations MetricsMustP149—CPG_Monitoring_Stack
22REQ-OBS-12COREPERF
Performance
External Dependency LatencyMustP150—CPG_SAD
23REQ-OBS-13COREPERF
Performance
External Dependency ErrorsMustP150—CPG_SAD
24REQ-OBS-14COREPERF
Performance
Interconnect LatencyMustP150—CPG_SAD

Source data:Dữ liệu nguồn: CPG-BR-NFR-REQ_v1.xlsx · requirements.csv · requirements.json

E. ReferencesE. Tham chiếu