An array of transitionable states can be retrieved using the
transitionableStates() on the state field.
abstract class PaymentState extends State
public static function config(): StateConfig
$transitionableStates = $payment->state->transitionableStates();
This will return an array with all transitionable states for the current state, for example
0 => "paid"
Can transition to
If you want to know whether a state can be transitioned to another one, you can use the