결제 전환 목표 아키텍처 정의 (2/2) #4

Open
forge-bot wants to merge 4 commits from forge/iss-f2a42175edbf-attempt-2 into main
Showing only changes of commit ab391e7416 - Show all commits

View file

@ -0,0 +1,19 @@
```mermaid
sequenceDiagram
participant User
participant PaymentService
participant PaymentGateway
participant Database
User->>PaymentService: 결제 요청
PaymentService->>Database: 거래 시작
Database-->>PaymentService: 거래 ID
PaymentService->>PaymentGateway: 결제 진행
alt Success
PaymentGateway-->>PaymentService: 결제 성공
PaymentService->>Database: 거래 확정
else Failure
PaymentGateway-->>PaymentService: 결제 실패
PaymentService->>Database: 거래 롤백
end
```