@@ -1541,7 +1541,7 @@ protected function _doRequest()
1541
1541
1542
1542
$ responseBody = $ this ->_getCachedQuotes ($ request );
1543
1543
if ($ responseBody === null ) {
1544
- $ debugData = ['request ' => $ request ];
1544
+ $ debugData = ['request ' => $ this -> filterDebugData ( $ request) ];
1545
1545
try {
1546
1546
/** @var \Magento\Framework\HTTP\ZendClient $client */
1547
1547
$ client = $ this ->_httpClientFactory ->create ();
@@ -1550,7 +1550,7 @@ protected function _doRequest()
1550
1550
$ client ->setRawData ($ request );
1551
1551
$ responseBody = $ client ->request (\Magento \Framework \HTTP \ZendClient::POST )->getBody ();
1552
1552
$ responseBody = utf8_decode ($ responseBody );
1553
- $ debugData ['result ' ] = $ responseBody ;
1553
+ $ debugData ['result ' ] = $ this -> filterDebugData ( $ responseBody) ;
1554
1554
$ this ->_setCachedQuotes ($ request , $ responseBody );
1555
1555
} catch (\Exception $ e ) {
1556
1556
$ this ->_errors [$ e ->getCode ()] = $ e ->getMessage ();
@@ -1735,15 +1735,15 @@ protected function _getXMLTracking($trackings)
1735
1735
1736
1736
$ responseBody = $ this ->_getCachedQuotes ($ request );
1737
1737
if ($ responseBody === null ) {
1738
- $ debugData = ['request ' => $ request ];
1738
+ $ debugData = ['request ' => $ this -> filterDebugData ( $ request) ];
1739
1739
try {
1740
1740
/** @var \Magento\Framework\HTTP\ZendClient $client */
1741
1741
$ client = $ this ->_httpClientFactory ->create ();
1742
1742
$ client ->setUri ((string )$ this ->getConfigData ('gateway_url ' ));
1743
1743
$ client ->setConfig (['maxredirects ' => 0 , 'timeout ' => 30 ]);
1744
1744
$ client ->setRawData ($ request );
1745
1745
$ responseBody = $ client ->request (\Magento \Framework \HTTP \ZendClient::POST )->getBody ();
1746
- $ debugData ['result ' ] = $ responseBody ;
1746
+ $ debugData ['result ' ] = $ this -> filterDebugData ( $ responseBody) ;
1747
1747
$ this ->_setCachedQuotes ($ request , $ responseBody );
1748
1748
} catch (\Exception $ e ) {
1749
1749
$ this ->_errors [$ e ->getCode ()] = $ e ->getMessage ();
0 commit comments