src/Adyen/HttpClient/CurlClient.php
protected function handleResultError($result, $logger)
	{
		$decodeResult = json_decode($result, true);
		if (isset($decodeResult['message']) && isset($decodeResult['errorCode'])) {
			$logger->error($decodeResult['errorCode'] . ': ' . $decodeResult['message']);
			throw new \Adyen\AdyenException($decodeResult['message'], $decodeResult['errorCode'], null,
				$decodeResult['status'], $decodeResult['errorType']);
		}
		$logger->error($result);
		throw new \Adyen\AdyenException($result);
	}
protected function handleResultError($result, $logger)
	{
		$decodeResult = json_decode($result, true);
		if (isset($decodeResult['message']) && isset($decodeResult['errorCode'])) {
			$logger->error($decodeResult['errorCode'] . ': ' . $decodeResult['message']);
			throw new \Adyen\AdyenException($decodeResult['message'], $decodeResult['errorCode'], null,
				$decodeResult['status'], $decodeResult['errorType']);
		}
		$logger->error($result);
		throw new \Adyen\AdyenException($result);
	}
protected function handleResultError ( $ result , $ logger ) { $ decodeResult = json_decode ( $ result , true ) ; if ( isset ( $ decodeResult [ 'message' ] ) && isset ( $ decodeResult [ 'errorCode' ] ) ) { $ logger -> error ( $ decodeResult [ 'errorCode' ] . ': ' . $ decodeResult [ 'message' ] ) ; throw new \ Adyen \ AdyenException ( $ decodeResult [ 'message' ] , $ decodeResult [ 'errorCode' ] , null , $ decodeResult [ 'status' ] , $ decodeResult [ 'errorType' ] ) ; } $ logger -> error ( $ result ) ; throw new \ Adyen \ AdyenException ( $ result ) ; }
Handle result errors from Adyen

@param $result
@param $logger
@throws \Adyen\AdyenException
Handle result errors from Adyen