Compare commits
3 commits
forge/SPRI
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a567918b9 | |||
| 71ef32ac91 | |||
| cc04923977 |
2 changed files with 28 additions and 0 deletions
3
.forge/iss-c7e589ce4a08-attempt-1.md
Normal file
3
.forge/iss-c7e589ce4a08-attempt-1.md
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# iss-c7e589ce4a08-attempt-1
|
||||
|
||||
Forge 이슈 작업 브랜치 `forge/iss-c7e589ce4a08-attempt-1`.
|
||||
25
docs/architecture/transaction-sequence.md
Normal file
25
docs/architecture/transaction-sequence.md
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
sequenceDiagram
|
||||
participant User
|
||||
participant Payment Gateway
|
||||
participant Database
|
||||
participant Service
|
||||
|
||||
User->>Service: Initiate Payment
|
||||
Service->>Payment Gateway: Send Payment Request
|
||||
alt Successful Payment
|
||||
Payment Gateway-->>Service: Confirm Payment
|
||||
Service->>Database: Record Payment
|
||||
Database-->>Service: Payment Recorded
|
||||
Service-->>User: Payment Success
|
||||
else External Payment Failed
|
||||
Payment Gateway-->>Service: Payment Failed
|
||||
Service-->>User: Payment Failed
|
||||
else Database Failure
|
||||
Service->>Database: Attempt to Record Payment
|
||||
Database-->>Service: Database Error
|
||||
Service-->>User: Unable to process payment
|
||||
end
|
||||
Service->>Database: Commit
|
||||
alt Rollback Required
|
||||
Database->>Database: Rollback Changes
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue