Skip to content

Commit 50b303e

Browse files
Merge remote-tracking branch '36067/fix-for-issue-36065' into comm_voted_v3
2 parents 38b8b51 + a852c23 commit 50b303e

File tree

1 file changed

+5
-0
lines changed
  • app/code/Magento/Customer/Model

1 file changed

+5
-0
lines changed

app/code/Magento/Customer/Model/Vat.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,11 @@ public function checkVatNumber($countryCode, $vatNumber, $requesterCountryCode =
212212
$gatewayResponse->setRequestMessage(__('Please enter a valid VAT number.'));
213213
}
214214
} catch (\Exception $exception) {
215+
$this->logger->error(
216+
sprintf('VAT Number validation failed with message: %s', $exception->getMessage()),
217+
['exception' => $exception]
218+
);
219+
215220
$gatewayResponse->setIsValid(false);
216221
$gatewayResponse->setRequestDate('');
217222
$gatewayResponse->setRequestIdentifier('');

0 commit comments

Comments
 (0)