결제 전환 목표 아키텍처 정의 (2/2) #4
2 changed files with 26 additions and 0 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`.
|
||||
23
docs/architecture/transaction-sequence.md
Normal file
23
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
```mermaid
|
||||
sequenceDiagram
|
||||
participant User
|
||||
participant PaymentGateway
|
||||
participant Database
|
||||
|
||||
User->>PaymentGateway: Initiate payment
|
||||
PaymentGateway->>User: Payment status (success)
|
||||
User->>Database: Save transaction
|
||||
Database-->>User: Transaction saved
|
||||
|
||||
%% External failure scenario
|
||||
User->>PaymentGateway: Initiate payment
|
||||
PaymentGateway-->>User: Payment status (failure)
|
||||
User->>Database: Log failure reason
|
||||
|
||||
%% Database failure scenario
|
||||
User->>PaymentGateway: Initiate payment
|
||||
PaymentGateway->>User: Payment status (success)
|
||||
User->>Database: Save transaction
|
||||
Database-->>User: Transaction failed (DB error)
|
||||
Note right of User: Rollback transaction
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue