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();