Skip to content

Commit

Permalink
Removed an impossible transition.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinder committed Jun 15, 2020
1 parent e7fca7b commit f1d40ce
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/Helper/PaymentStatusHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit f1d40ce

Please sign in to comment.