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

Open
forge-bot wants to merge 2 commits from forge/iss-5a912ed79baf-attempt-2 into main
Showing only changes of commit f5923a3a7a - Show all commits

View 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
```