From 7722f20ed0b1bc448eaf6359de3f1b768794b118 Mon Sep 17 00:00:00 2001 From: Marijus <106698165+MarijusCoding@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:53:53 +0300 Subject: [PATCH] Update src/Validation/CustomerCreditCardValidation.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Julius Žukauskas <31609858+zuk3975@users.noreply.github.com> --- src/Validation/CustomerCreditCardValidation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validation/CustomerCreditCardValidation.php b/src/Validation/CustomerCreditCardValidation.php index a8e1ab06..89f71949 100644 --- a/src/Validation/CustomerCreditCardValidation.php +++ b/src/Validation/CustomerCreditCardValidation.php @@ -76,7 +76,7 @@ public function validate($idSavedCard, $idCustomer) $cardOwnerId = $this->saferPayCardAliasRepository->getCustomerIdByReferenceId(pSQL($idSavedCard), pSQL($idCustomer)); if (empty($cardOwnerId)) { - return throw UnauthenticatedCardUserException::unauthenticatedCard($cardOwnerId); + throw UnauthenticatedCardUserException::unauthenticatedCard($cardOwnerId); } return true;