From afda611b84262234a763fa411bb6a98899f6225f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Toma=CC=81s=CC=8C=20Ludvik?= Date: Thu, 12 Dec 2024 12:56:19 +0100 Subject: [PATCH] fixup! payment status is now displayed on order detail for all external payments --- src/Form/Admin/Order/OrderFormType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/Admin/Order/OrderFormType.php b/src/Form/Admin/Order/OrderFormType.php index e3243919e8..19f9e2c01f 100644 --- a/src/Form/Admin/Order/OrderFormType.php +++ b/src/Form/Admin/Order/OrderFormType.php @@ -203,7 +203,7 @@ private function createBasicInformationGroup(FormBuilderInterface $builder, Orde if ($order->hasExternalPayment()) { $paymentTransactions = $order->getTransactionsOfCurrentPayment(); /** @var \Shopsys\FrameworkBundle\Model\Payment\Transaction\PaymentTransaction|bool $paymentTransaction */ - $paymentTransaction = end($paymentTransactions)->getExternalPaymentStatus(); + $paymentTransaction = end($paymentTransactions); if ($paymentTransaction !== false) { if ($paymentTransaction->getExternalPaymentStatus() !== null) {