Skip to content

Commit

Permalink
fixup! payment status is now displayed on order detail for all extern…
Browse files Browse the repository at this point in the history
…al payments
  • Loading branch information
TomasLudvik committed Dec 12, 2024
1 parent a5583e7 commit afda611
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/Admin/Order/OrderFormType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit afda611

Please sign in to comment.