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;