결제 전환 목표 아키텍처 정의 (2/2) (iss-155aa95ea6df)
All checks were successful
ci / test (pull_request) Successful in 6s
All checks were successful
ci / test (pull_request) Successful in 6s
This commit is contained in:
parent
ebf4cef42f
commit
71e25467e3
1 changed files with 25 additions and 0 deletions
25
docs/architecture/transaction-sequence.md
Normal file
25
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
```mermaid
|
||||
sequenceDiagram
|
||||
participant User
|
||||
participant PaymentGateway
|
||||
participant Bank
|
||||
|
||||
%% Normal flow
|
||||
User ->> PaymentGateway: Request Payment
|
||||
PaymentGateway ->> Bank: Process Payment
|
||||
Bank -->> PaymentGateway: Payment Approved
|
||||
PaymentGateway -->> User: Payment Confirmation
|
||||
|
||||
%% External failure branch
|
||||
User ->> PaymentGateway: Request Payment
|
||||
PaymentGateway ->> Bank: Process Payment
|
||||
Bank -->> PaymentGateway: Payment Declined
|
||||
PaymentGateway -->> User: Payment Declined Message
|
||||
|
||||
%% DB failure branch
|
||||
User ->> PaymentGateway: Request Payment
|
||||
PaymentGateway ->> Bank: Process Payment
|
||||
Bank -->> PaymentGateway: DB Error
|
||||
PaymentGateway -->> User: Payment Failed Due to Error
|
||||
Note over PaymentGateway: Rollback transaction if needed
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue