From 95d619e165e35ab803d0b01971b0257019c9c806 Mon Sep 17 00:00:00 2001 From: kevinverschoor <61683999+kevinverschoor@users.noreply.github.com> Date: Wed, 1 May 2024 11:00:48 +0200 Subject: [PATCH] Code Polish --- Model/PayPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Model/PayPayment.php b/Model/PayPayment.php index 3ed462a7..239b7d73 100644 --- a/Model/PayPayment.php +++ b/Model/PayPayment.php @@ -204,7 +204,7 @@ public function chargebackOrder($orderEntityId) if (!$this->config->chargebackFromPayEnabled() || $order->getTotalDue() != 0 || $order->getBaseTotalRefunded() == $order->getBaseGrandTotal()) { throw new \Exception("Ignoring chargeback"); } - try { + try { $creditmemo = $this->cmFac->createByOrder($order); $this->cmService->refund($creditmemo); $order->addStatusHistoryComment(__('PAY. - Chargeback initiated by customer'))->save();