@startuml
title Submit checkout — interaction
actor "Customer" as User
participant "Order Service" as Platform
participant "Product Catalog Service" as Partner
participant "Payment Service" as Gateway
User -> Platform : Submit checkout
Platform -> Partner : Validate availability and reserve stock
Partner --> Platform : validation / acceptance result
alt accepted
Platform -> Gateway : Capture payment using checkout token
Gateway --> Platform : Capture result
Platform -> Platform : Persist order and enqueue OrderPlaced in outbox
Platform --> User : confirmation / current status
else declined or unavailable
Platform --> User : explain failure; allow safe retry
end
note over Platform
Reservation release and payment reconciliation are required on failure; fulfilment is asynchronous.
end note
@enduml
