Core/Caller.php
protected function validateResponse($response)
    {
        if ('Failure' == $response['ACK']) {
            /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalResponseException $exception
             */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalResponseException::class, $response['L_LONGMESSAGE0'], $response['L_ERRORCODE0']);
            throw $exception;
        }
    }
protected function validateResponse($response)
    {
        if ('Failure' == $response['ACK']) {
            /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalResponseException $exception
             */
            $exception = oxNew(\OxidEsales\PayPalModule\Core\Exception\PayPalResponseException::class, $response['L_LONGMESSAGE0'], $response['L_ERRORCODE0']);
            throw $exception;
        }
    }
protected function validateResponse ( $ response ) { if ( 'Failure' == $ response [ 'ACK' ] ) { /**
             * @var \OxidEsales\PayPalModule\Core\Exception\PayPalResponseException $exception
             */ $ exception = oxNew ( \ OxidEsales \ PayPalModule \ Core \ Exception \ PayPalResponseException :: class , $ response [ 'L_LONGMESSAGE0' ] , $ response [ 'L_ERRORCODE0' ] ) ; throw $ exception ; } }
Validates response from PayPal errors.

@param array $response

@throws \OxidEsales\PayPalModule\Core\Exception\PayPalResponseException if response has error from PayPal
Validates response from PayPal errors .