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

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

        throw new HpsException((string)$response->ErrorDesc);
    }
protected function processGatewayResponse($response)
    {
        $gatewayRspCode = isset($response->ErrorNo)
                        ? (string)$response->ErrorNo
                        : null;

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

        throw new HpsException((string)$response->ErrorDesc);
    }
protected function processGatewayResponse ( $ response ) { $ gatewayRspCode = isset ( $ response -> ErrorNo ) ? ( string ) $ response -> ErrorNo : null ; if ( $ gatewayRspCode == '0' ) { return ; } throw new HpsException ( ( string ) $ response -> ErrorDesc ) ; }
Processes the response from Cardinal

@param object $response response from Cardinal

@return null
@throws \HpsException
Processes the response from Cardinal