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;
        }
    }