결제 전환 목표 아키텍처 정의 (2/2) #2
2 changed files with 27 additions and 0 deletions
3
.forge/iss-2499ff1ad79a-attempt-3-run-30d98199f9aa.md
Normal file
3
.forge/iss-2499ff1ad79a-attempt-3-run-30d98199f9aa.md
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# iss-2499ff1ad79a-attempt-3-run-30d98199f9aa
|
||||||
|
|
||||||
|
Forge 이슈 작업 브랜치 `forge/iss-2499ff1ad79a-attempt-3-run-30d98199f9aa`.
|
||||||
24
docs/architecture/transaction-sequence.md
Normal file
24
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant User
|
||||||
|
participant PaymentGateway
|
||||||
|
participant Application
|
||||||
|
participant Database
|
||||||
|
User->>Application: Initiate Payment
|
||||||
|
Application->>PaymentGateway: Process Payment
|
||||||
|
alt Successful Payment
|
||||||
|
PaymentGateway-->>Application: Payment Approved
|
||||||
|
Application->>Database: Commit Transaction
|
||||||
|
Database-->>Application: Transaction Committed
|
||||||
|
Application-->>User: Payment Successful
|
||||||
|
else External Failure
|
||||||
|
PaymentGateway-->>Application: Payment Error
|
||||||
|
Application-->>User: Payment Failed
|
||||||
|
else DB Failure
|
||||||
|
Application->>Database: Attempt Transaction
|
||||||
|
Database-->>Application: Transaction Error
|
||||||
|
Application->>Database: Rollback Transaction
|
||||||
|
Database-->>Application: Transaction Rolled Back
|
||||||
|
Application-->>User: Payment Failed
|
||||||
|
end
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue