protected function parseResponse($body)
    {
        $this->paramCount = $body->getElementsByTagName('parameter')->length;

        if ($this->paramCount > 0) {
            for ($i = 0; $i < $this->paramCount; $i++) {

                $parameter = $body->getElementsByTagName('parameter')->item($i);

                $name  = $parameter->getElementsByTagName('name')->item(0)->nodeValue;
                $value = $parameter->getElementsByTagName('value')->item(0)->nodeValue;

                $this->transaction[$name] = $value;
            }
        }
    }
protected function parseResponse($body)
    {
        $this->paramCount = $body->getElementsByTagName('parameter')->length;

        if ($this->paramCount > 0) {
            for ($i = 0; $i < $this->paramCount; $i++) {

                $parameter = $body->getElementsByTagName('parameter')->item($i);

                $name  = $parameter->getElementsByTagName('name')->item(0)->nodeValue;
                $value = $parameter->getElementsByTagName('value')->item(0)->nodeValue;

                $this->transaction[$name] = $value;
            }
        }
    }
protected function parseResponse ( $ body ) { $ this -> paramCount = $ body -> getElementsByTagName ( 'parameter' ) -> length ; if ( $ this -> paramCount > 0 ) { for ( $ i = 0 ; $ i < $ this -> paramCount ; $ i ++ ) { $ parameter = $ body -> getElementsByTagName ( 'parameter' ) -> item ( $ i ) ; $ name = $ parameter -> getElementsByTagName ( 'name' ) -> item ( 0 ) -> nodeValue ; $ value = $ parameter -> getElementsByTagName ( 'value' ) -> item ( 0 ) -> nodeValue ; $ this -> transaction [ $ name ] = $ value ; } } }
Parse the TransactionStatusResponse message and save the data to the corresponding attributes

@param \DOMElement $body
Parse the TransactionStatusResponse message and save the data to the corresponding attributes