diff --git a/Model/Payment/AdyenCc/TransactionIdMapper.php b/Model/Payment/AdyenCc/TransactionIdMapper.php index 31130bfe..69bc94d4 100644 --- a/Model/Payment/AdyenCc/TransactionIdMapper.php +++ b/Model/Payment/AdyenCc/TransactionIdMapper.php @@ -22,7 +22,7 @@ public function getPaymentData(\Magento\Sales\Model\Order $order) $transactionId = $additionalInfo['pspReference']; } - $message = 'Transaction ID found on payment mapper: ' . $transactionId; + $message = 'Transaction ID found on payment mapper: ' . (empty($transactionId) ? 'false' : $transactionId); $this->logger->debug($message, ['entity' => $order]); if (empty($transactionId)) { diff --git a/Model/Payment/Cybersource/TransactionIdMapper.php b/Model/Payment/Cybersource/TransactionIdMapper.php index b9ba7514..28995afe 100644 --- a/Model/Payment/Cybersource/TransactionIdMapper.php +++ b/Model/Payment/Cybersource/TransactionIdMapper.php @@ -22,7 +22,7 @@ public function getPaymentData(\Magento\Sales\Model\Order $order) $transactionId = $additionalInfo['transaction_id']; } - $message = 'Transaction ID found on payment mapper: ' . $transactionId; + $message = 'Transaction ID found on payment mapper: ' . (empty($transactionId) ? 'false' : $transactionId); $this->logger->debug($message, ['entity' => $order]); if (empty($transactionId)) {