Skip to content

Commit

Permalink
MAG2-302 - Masked txStatus customer_iban field
Browse files Browse the repository at this point in the history
  • Loading branch information
FatchipRobert committed Jan 31, 2024
1 parent 503e34a commit 6e118e1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Model/ResourceModel/TransactionStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ public function addTransactionLogEntry($aRequest, Order $oOrder = null, $blHasBe
{
$this->setRequest($aRequest);

$sRawStatus = serialize($this->getRequest());
$aRequestForLog = $this->getRequest();
if (!empty($aRequestForLog['customer_iban'])) {
$aRequestForLog['customer_iban'] = $this->toolkitHelper->maskIban($aRequestForLog['customer_iban']);
}

$sRawStatus = serialize($aRequestForLog);
if (!$this->toolkitHelper->isUTF8($sRawStatus)) {
$sRawStatus = mb_convert_encoding($sRawStatus, 'UTF-8'); // needed for serializing the array
}
Expand Down

0 comments on commit 6e118e1

Please sign in to comment.