Skip to content

Commit

Permalink
Code Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinverschoor committed May 1, 2024
1 parent aaed35c commit 95d619e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/PayPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 95d619e

Please sign in to comment.