From f0e5ed5bd04fee62919e8467e5e0e14e7704ae54 Mon Sep 17 00:00:00 2001 From: Dominik Pfaffenbauer Date: Thu, 31 Oct 2024 07:40:29 +0100 Subject: [PATCH] [PayumBundle] remove payment_state processing to confirm orders --- src/CoreShop/Bundle/PayumBundle/Action/ConfirmOrderAction.php | 3 +-- .../Bundle/PayumBundle/Extension/UpdateOrderStateExtension.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CoreShop/Bundle/PayumBundle/Action/ConfirmOrderAction.php b/src/CoreShop/Bundle/PayumBundle/Action/ConfirmOrderAction.php index 20ae57bb94..eee4cf6525 100644 --- a/src/CoreShop/Bundle/PayumBundle/Action/ConfirmOrderAction.php +++ b/src/CoreShop/Bundle/PayumBundle/Action/ConfirmOrderAction.php @@ -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); diff --git a/src/CoreShop/Bundle/PayumBundle/Extension/UpdateOrderStateExtension.php b/src/CoreShop/Bundle/PayumBundle/Extension/UpdateOrderStateExtension.php index 813be9e076..41b3cb6027 100644 --- a/src/CoreShop/Bundle/PayumBundle/Extension/UpdateOrderStateExtension.php +++ b/src/CoreShop/Bundle/PayumBundle/Extension/UpdateOrderStateExtension.php @@ -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);