결제 전환 목표 아키텍처 정의 (2/2) (iss-bae72bbf49e3)
All checks were successful
ci / test (pull_request) Successful in 7s
All checks were successful
ci / test (pull_request) Successful in 7s
This commit is contained in:
parent
4e40bb33c4
commit
1917bdf0f1
1 changed files with 23 additions and 0 deletions
23
docs/architecture/transaction-sequence.md
Normal file
23
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
```mermaid
|
||||||
|
sequenceDiagram
|
||||||
|
participant User
|
||||||
|
participant PaymentGateway
|
||||||
|
participant TransactionDB
|
||||||
|
User->>PaymentGateway: Initiate Payment
|
||||||
|
alt Successful Payment
|
||||||
|
PaymentGateway-->>TransactionDB: Store Transaction
|
||||||
|
TransactionDB-->>PaymentGateway: Confirm Transaction Stored
|
||||||
|
PaymentGateway-->>User: Payment Successful
|
||||||
|
else External Failure
|
||||||
|
PaymentGateway-->>User: Payment Gateway Error
|
||||||
|
else DB Failure
|
||||||
|
PaymentGateway-->>User: Payment Processing Error
|
||||||
|
TransactionDB-->>PaymentGateway: DB Error Occurred
|
||||||
|
end
|
||||||
|
opt Commit Transaction
|
||||||
|
TransactionDB-->>User: Commit Success
|
||||||
|
end
|
||||||
|
opt Rollback Transaction
|
||||||
|
TransactionDB-->>User: Rollback Success
|
||||||
|
end
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue