Skip to content

Commit

Permalink
Merge pull request #2743 from dpfaffenbauer/issue/2740
Browse files Browse the repository at this point in the history
[PayumBundle] remove payment_state processing to confirm orders
  • Loading branch information
dpfaffenbauer authored Oct 31, 2024
2 parents 4061015 + f0e5ed5 commit 0d659a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ public function execute($request): void
$payment = $request->getFirstModel();
$order = $payment->getOrder();
if ($payment->getState() === PaymentInterface::STATE_COMPLETED ||
$payment->getState() === PaymentInterface::STATE_AUTHORIZED ||
$payment->getState() === PaymentInterface::STATE_PROCESSING
$payment->getState() === PaymentInterface::STATE_AUTHORIZED
) {
$this->stateMachineApplier->apply($order, OrderTransitions::IDENTIFIER, OrderTransitions::TRANSITION_CONFIRM);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ public function onPostExecute(Context $context): void
}

if ($value === PaymentInterface::STATE_COMPLETED ||
$value === PaymentInterface::STATE_AUTHORIZED ||
$value === PaymentInterface::STATE_PROCESSING
$value === PaymentInterface::STATE_AUTHORIZED
) {
$order = $payment->getOrder();
$this->confirmOrderState($order);
Expand Down

0 comments on commit 0d659a3

Please sign in to comment.