Glossary: System Design Beyond the Basics in Go
State machine
Also written: payment state machine
A list of allowed states and moves; every other move is refused. A payment goes created, authorized, captured or failed, so a late retry can't capture a failed payment.