src/Adyen/HttpClient/CurlClient.php
private function logRequest(\Psr\Log\LoggerInterface $logger, $requestUrl, $params)
	{
		// log the requestUr, params and json request
		$logger->info("Request url to Adyen: " . $requestUrl);
		if (isset($params["additionalData"]) && isset($params["additionalData"]["card.encrypted.json"])) {
			$params["additionalData"]["card.encrypted.json"] = "*";
		}
		if (isset($params["card"]) && isset($params["card"]["number"])) {
			$params["card"]["number"] = "*";
			$params["card"]["cvc"] = "*";
		}
		$logger->info('JSON Request to Adyen:' . json_encode($params));
	}
private function logRequest(\Psr\Log\LoggerInterface $logger, $requestUrl, $params)
	{
		// log the requestUr, params and json request
		$logger->info("Request url to Adyen: " . $requestUrl);
		if (isset($params["additionalData"]) && isset($params["additionalData"]["card.encrypted.json"])) {
			$params["additionalData"]["card.encrypted.json"] = "*";
		}
		if (isset($params["card"]) && isset($params["card"]["number"])) {
			$params["card"]["number"] = "*";
			$params["card"]["cvc"] = "*";
		}
		$logger->info('JSON Request to Adyen:' . json_encode($params));
	}
private function logRequest ( \ Psr \ Log \ LoggerInterface $ logger , $ requestUrl , $ params ) { // log the requestUr, params and json request $ logger -> info ( "Request url to Adyen: " . $ requestUrl ) ; if ( isset ( $ params [ "additionalData" ] ) && isset ( $ params [ "additionalData" ] [ "card.encrypted.json" ] ) ) { $ params [ "additionalData" ] [ "card.encrypted.json" ] = "*" ; } if ( isset ( $ params [ "card" ] ) && isset ( $ params [ "card" ] [ "number" ] ) ) { $ params [ "card" ] [ "number" ] = "*" ; $ params [ "card" ] [ "cvc" ] = "*" ; } $ logger -> info ( 'JSON Request to Adyen:' . json_encode ( $ params ) ) ; }
Logs the API request, removing sensitive data

@param \Psr\Log\LoggerInterface $logger
@param $requestUrl
@param $params
Logs the API request removing sensitive data