# why OrderTransactionStateHandler do not contain a method authorize

**URL:** <https://forum.shopware.com/t/why-ordertransactionstatehandler-do-not-contain-a-method-authorize/73051>\
**Category:** Programming (EN)\
**Created:** [27. Februar 2021 um 18:41 UTC](https://forum.shopware.com/t/why-ordertransactionstatehandler-do-not-contain-a-method-authorize/73051 "2021-02-27T18:41:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lanea](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@lanea](https://forum.shopware.com/u/lanea)\
**Post date:** [27. Februar 2021 um 18:41 UTC](https://forum.shopware.com/t/why-ordertransactionstatehandler-do-not-contain-a-method-authorize/73051/1 "2021-02-27T18:41:47Z")

</div>

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 ); }
```
