diff --git a/src/Helper/PaymentStatusHelper.php b/src/Helper/PaymentStatusHelper.php index 392dbe84d..1ee198d63 100644 --- a/src/Helper/PaymentStatusHelper.php +++ b/src/Helper/PaymentStatusHelper.php @@ -177,30 +177,7 @@ public function processPaymentStatus( if ( $authorizedNumber > 0 && $authorizedNumber === $paymentsTotal - && $transactionState !== null - && $transactionState->getTechnicalName() !== PaymentStatus::STATUS_CANCELED ) { - try { - $this->stateMachineRegistry->transition( - new Transition( - OrderTransactionDefinition::ENTITY_NAME, - $transaction->getId(), - PaymentStatusConfigurator::TRANSITION_ACTION_AUTHORIZED, - 'stateId' - ), - $context - ); - } catch (Exception $e) { - $this->logger->addEntry( - $e->getMessage(), - $context, - $e, - [ - 'function' => 'payment-set-transaction-state' - ] - ); - } - return PaymentStatus::STATUS_AUTHORIZED; }