I have a question to the developers of Shopware, why OrderTransactionStateHandler do not contain a method authorize
This status exist in StateMachineTransitionActions
/\*\* \* @throws InconsistentCriteriaIdsException \* @throws StateMachineNotFoundException \* @throws IllegalTransitionException \* @throws StateMachineInvalidEntityIdException \* @throws StateMachineInvalidStateFieldException \*/ public function authorize(string $transactionId, Context $context): void { $this-\>stateMachineRegistry-\>transition( new Transition( OrderTransactionDefinition::ENTITY\_NAME, $transactionId, StateMachineTransitionActions::ACTION\_AUTHORIZE, 'stateId' ), $context ); }