결제 전환 목표 아키텍처 정의 #1

Merged
forge-bot merged 4 commits from forge/SPRING-ARC-GATE-1783823993-attempt-1 into main 2026-07-12 02:40:56 +00:00
Showing only changes of commit 9a043927cb - Show all commits

View file

@ -0,0 +1,25 @@
```mermaid
sequenceDiagram
participant User
participant Controller
participant Service
participant Repository
participant PaymentGateway
User->>Controller: 결제 요청
Controller->>Service: 결제 처리 요청
Service->>Repository: 트랜잭션 시작
alt 정상 흐름
Service->>PaymentGateway: 결제 요청
PaymentGateway-->>Service: 결제 성공
Service->>Repository: 트랜잭션 커밋
else 외부 실패
Service->>PaymentGateway: 결제 요청
PaymentGateway-->>Service: 결제 실패
Service->>Repository: 트랜잭션 롤백
else DB 실패
Service->>Repository: 트랜잭션 시작
Service->>Repository: DB 오류 발생
Service->>Repository: 트랜잭션 롤백
end
```