Core — Transaction Test Cases

Derived from FSD Use Cases (v0 — expand when Doc05 Excel exists)

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

Doc IDCPG-TC-CPG-Core_Transaction_TestCases
VersionPhiên bản1.0
StatusTrạng tháiDraft
OwnerCPG BA / Architecture
AudienceĐối tượngQA, Product, Backend, Frontend
ClassificationPhân loạiInternal
Effective dateNgày hiệu lực01/12/2026
Related docs Core Transaction UC · CPG-Core_FSD_Transaction

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

Version Date Author ChangesThay đổi
1.0 01/12/2026 Khoa Trinh Version 1.0

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

D. ContentD. Nội dung

Index

Test ID Test name BR UC Category
CTXN-001 Service enabled; VA+HW active — UC-SES-01 Function
CTXN-001 Session awaiting; exact credited observation — UC-MCH-01 Function
CTXN-001 Matched; KYT PASS — UC-PAY-01 Function
CTXN-001 Allocated; KYT FAIL — UC-KYT-01 Function
CTXN-001 Payments exist — UC-QRY-01 Function
CTXN-001 Available; whitelist wallet — UC-REF-01 Function
CTXN-001 Available locked funds — UC-STL-01 Function
CTXN-001 Intent broadcast; process kill — UC-IDM-01 Function
CTXN-001 payment.success — UC-WHK-01 Function
CTXN-001 BLOCK_OUTBOUND freeze — UC-FRZ-01 Function
CTXN-001 QR Payment disabled — UC-NEG-01 Function
CTXN-002 Prior successful create — UC-SES-02 Function
CTXN-002 txn-service — UC-MCH-02 Function
CTXN-002 Source tagged exchange; to_source=true — UC-REF-02 Function
CTXN-002 Prior delivery — UC-WHK-02 Function
CTXN-002 Refund amount > remaining — UC-NEG-02 Function
CTXN-003 Eligible payment — UC-REF-03 Function
CTXN-003 Session expired; late credit — UC-NEG-03 Function
CTXN-004 VA paused — UC-NEG-04 Function

Test cases

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-SES-01
Test name Service enabled; VA+HW active
Preconditions settings / API
Data —
Steps POST session with Idempotency-Key
Expected result One payment_id; status awaiting_deposit
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-MCH-01
Test name Session awaiting; exact credited observation
Preconditions txn-service
Data —
Steps Consume event; match
Expected result matched; one match row
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-PAY-01
Test name Matched; KYT PASS
Preconditions txn-service
Data —
Steps allocate then confirm
Expected result Merchant available += net; fees accrued
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-KYT-01
Test name Allocated; KYT FAIL
Preconditions txn-service
Data —
Steps Attempt confirm
Expected result Rejected; kyt_hold; payment.failed
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-QRY-01
Test name Payments exist
Preconditions Merchant JWT
Data —
Steps List with Portal filters
Expected result Only own merchant rows
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-REF-01
Test name Available; whitelist wallet
Preconditions Merchant + checker
Data —
Steps Approve; lock; broadcast; execute
Expected result Refund success; refundable reduced
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-STL-01
Test name Available locked funds
Preconditions Settlement client
Data —
Steps lock → init → settle → complete
Expected result Settled + fees
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-IDM-01
Test name Intent broadcast; process kill
Preconditions txn-service
Data —
Steps Restart; replay same intent_id
Expected result One chain tx; one ledger execute
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-WHK-01
Test name payment.success
Preconditions txn-service
Data —
Steps Deliver HMAC POST
Expected result Attempt SENT; webhook_status SENT
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-FRZ-01
Test name BLOCK_OUTBOUND freeze
Preconditions txn-service
Data —
Steps Refund/settlement broadcast
Expected result OUTBOUND_FROZEN; intent not broadcast
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-001

Field Value
Test ID CTXN-001
Business Requirement ID —
Category Function
Use Case ID UC-NEG-01
Test name QR Payment disabled
Preconditions API
Data —
Steps POST session
Expected result SERVICE_DISABLED
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-002

Field Value
Test ID CTXN-002
Business Requirement ID —
Category Function
Use Case ID UC-SES-02
Test name Prior successful create
Preconditions API
Data —
Steps Replay same key
Expected result Same payment_id; no second row
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-002

Field Value
Test ID CTXN-002
Business Requirement ID —
Category Function
Use Case ID UC-MCH-02
Test name txn-service
Preconditions Per FSD RBAC / module preconditions
Data —
Steps Exercise use case UC-MCH-02 as described in the FSD / 08_UC catalog.
Expected result Use case UC-MCH-02 completes successfully.
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-002

Field Value
Test ID CTXN-002
Business Requirement ID —
Category Function
Use Case ID UC-REF-02
Test name Source tagged exchange; to_source=true
Preconditions Merchant + checker
Data —
Steps Submit refund
Expected result EXCHANGE_REFUND_BLOCKED; no broadcast
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-002

Field Value
Test ID CTXN-002
Business Requirement ID —
Category Function
Use Case ID UC-WHK-02
Test name Prior delivery
Preconditions Merchant developer
Data —
Steps Resend selected ids
Expected result New attempt; history kept
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-002

Field Value
Test ID CTXN-002
Business Requirement ID —
Category Function
Use Case ID UC-NEG-02
Test name Refund amount > remaining
Preconditions Merchant
Data —
Steps POST refund
Expected result VALIDATION_ERROR / NOT_REFUNDABLE
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-003

Field Value
Test ID CTXN-003
Business Requirement ID —
Category Function
Use Case ID UC-REF-03
Test name Eligible payment
Preconditions Single operator
Data —
Steps Submit without second approval
Expected result No broadcast; not processing confirmed
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-003

Field Value
Test ID CTXN-003
Business Requirement ID —
Category Function
Use Case ID UC-NEG-03
Test name Session expired; late credit
Preconditions txn-service
Data —
Steps Match
Expected result expired hold; no available
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

CTXN-004

Field Value
Test ID CTXN-004
Business Requirement ID —
Category Function
Use Case ID UC-NEG-04
Test name VA paused
Preconditions EVM operator
Data —
Steps flush/refund
Expected result Not submitted; intent waits or fails closed
Notes Derived from FSD Use Cases — expand steps/expected when Doc05 Excel is available.

E. ReferencesE. Tham chiếu