protected function processGatewayResponse($response)
    {
        $gatewayRspCode = isset($response->ErrorNo)
                        ? (string)$response->ErrorNo
                        : null;

        if ($gatewayRspCode == '0') {
            return;
        }

        throw new HpsException((string)$response->ErrorDesc);
    }