@startuml
title Request a ride — interaction
actor "Passenger" as User
participant "Ride-sharing Platform" as Platform
participant "Driver" as Partner
participant "Stripe Connect" as Gateway
User -> Platform : Request a ride
Platform -> Partner : Accept pickup
Partner --> Platform : validation / acceptance result
alt accepted
Platform -> Gateway : Request fare authorization
Gateway --> Platform : Authorization result
Platform -> Platform : Record accepted trip; notify passenger
Platform --> User : confirmation / current status
else declined or unavailable
Platform --> User : explain failure; allow safe retry
end
note over Platform
The ride is matched here. Capture and driver payout occur after completion.
end note
@enduml
