Compare commits
2 commits
main
...
forge/iss-
| Author | SHA1 | Date | |
|---|---|---|---|
| f5923a3a7a | |||
| cf6a5fe021 |
5 changed files with 17 additions and 44 deletions
3
.forge/iss-5a912ed79baf-attempt-2.md
Normal file
3
.forge/iss-5a912ed79baf-attempt-2.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# iss-5a912ed79baf-attempt-2
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/iss-5a912ed79baf-attempt-2`.
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
# iss-5a912ed79baf-attempt-3
|
|
||||||
|
|
||||||
Forge 이슈 작업 브랜치 `forge/iss-5a912ed79baf-attempt-3`.
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
# iss-87190c9836ac-attempt-1
|
|
||||||
|
|
||||||
Forge 이슈 작업 브랜치 `forge/iss-87190c9836ac-attempt-1`.
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
# Package Responsibility Map
|
|
||||||
|
|
||||||
| Package | Responsibility | Forbidden Dependencies |
|
|
||||||
|----------------|------------------------------------------------|------------------------|
|
|
||||||
| controller | Handles user input and orchestrates payment | domain |
|
|
||||||
| service | Contains business logic for payment processing | integration |
|
|
||||||
| repository | Data access layer for payment records | service |
|
|
||||||
| domain | Defines the core domain models and business rules| controller |
|
|
||||||
| integration | Communicates with external payment gateways | domain, service |
|
|
||||||
|
|
@ -1,38 +1,23 @@
|
||||||
```mermaid
|
```mermaid
|
||||||
sequenceDiagram
|
sequenceDiagram
|
||||||
participant User
|
participant User
|
||||||
participant PaymentService
|
|
||||||
participant PaymentGateway
|
participant PaymentGateway
|
||||||
participant Database
|
participant Database
|
||||||
|
|
||||||
%% Normal Flow
|
User->>PaymentGateway: Initiate payment
|
||||||
User->>PaymentService: Initiate Payment
|
PaymentGateway->>User: Payment status (success)
|
||||||
PaymentService->>Database: Store Transaction
|
User->>Database: Save transaction
|
||||||
Database-->>PaymentService: Transaction Stored
|
Database-->>User: Transaction saved
|
||||||
PaymentService->>PaymentGateway: Process Payment
|
|
||||||
PaymentGateway-->>PaymentService: Payment Success
|
|
||||||
PaymentService->>Database: Update Transaction Status
|
|
||||||
Database-->>PaymentService: Transaction Updated
|
|
||||||
PaymentService-->>User: Payment Success
|
|
||||||
|
|
||||||
%% External Failure Flow
|
%% External failure scenario
|
||||||
User->>PaymentService: Initiate Payment
|
User->>PaymentGateway: Initiate payment
|
||||||
PaymentService->>Database: Store Transaction
|
PaymentGateway-->>User: Payment status (failure)
|
||||||
Database-->>PaymentService: Transaction Stored
|
User->>Database: Log failure reason
|
||||||
PaymentService->>PaymentGateway: Process Payment
|
|
||||||
PaymentGateway-->>PaymentService: Payment Failure
|
|
||||||
PaymentService->>Database: Rollback Transaction
|
|
||||||
Database-->>PaymentService: Transaction Rolled Back
|
|
||||||
PaymentService-->>User: Payment Failure
|
|
||||||
|
|
||||||
%% DB Failure Flow
|
%% Database failure scenario
|
||||||
User->>PaymentService: Initiate Payment
|
User->>PaymentGateway: Initiate payment
|
||||||
PaymentService->>Database: Store Transaction
|
PaymentGateway->>User: Payment status (success)
|
||||||
Database-->>PaymentService: Transaction Store Failure
|
User->>Database: Save transaction
|
||||||
PaymentService-->>User: Payment Failure
|
Database-->>User: Transaction failed (DB error)
|
||||||
|
Note right of User: Rollback transaction
|
||||||
%% Commit & Rollback
|
|
||||||
Note over User, PaymentService:
|
|
||||||
commit --> PaymentService
|
|
||||||
rollback --> PaymentService
|
|
||||||
```
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue