Skip to content

Commit

Permalink
[PayumBundle] remove payment_state processing to confirm orders
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Oct 31, 2024
1 parent 4061015 commit f0e5ed5
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 f0e5ed5

Please sign in to comment.