Skip to content

Commit 15f8257

Browse files
committed
Code polish
1 parent 470ed2e commit 15f8257

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

includes/classes/PPMFWC/Gateways.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,8 +1045,6 @@ private static function validateExchange(string $action, PayOrder $payOrder, Exc
10451045
} elseif ($payOrder->isCancelled() && $action != self::ACTION_CANCEL) {
10461046
$exchange->setResponse(false, "Unexpected action ({$action}) for order state cancelled.");
10471047

1048-
} elseif ($payOrder->isRefunded() && stripos($action, 'refund') === false) {
1049-
$exchange->setResponse(false, "Unexpected action ({$action}) for order state refunded.");
10501048
}
10511049
}
10521050

0 commit comments

Comments
 (0)