Svea/HostedService/HostedResponse/HostedAdminResponse/AnnulTransactionResponse.php
/**
     * formatXml() parses the annul transaction response xml into an object, and
     * then sets the response attributes accordingly.
     * 
     * @param string $hostedAdminResponseXML  hostedAdminResponse as xml
     */
formatXml() parses the annul transaction response xml into an object, and
then sets the response attributes accordingly.


formatXml () parses the annul transaction response xml into an object and then sets the response attributes accordingly .
protected function formatXml($hostedAdminResponseXML) {
        $hostedAdminResponse = new \SimpleXMLElement($hostedAdminResponseXML);
        if ((string)$hostedAdminResponse->statuscode == '0') {
            $this->accepted = 1;
            $this->resultcode = '0';
        } else {
            $this->accepted = 0;
            $this->setErrorParams( (string)$hostedAdminResponse->statuscode ); 
        }
        $this->transactionId = (string)$hostedAdminResponse->transaction['id'];
        $this->clientOrderNumber = (string)$hostedAdminResponse->transaction->customerrefno;    
    }
protected function formatXml ( $ hostedAdminResponseXML ) { $ hostedAdminResponse = new \ SimpleXMLElement ( $ hostedAdminResponseXML ) ; if ( ( string ) $ hostedAdminResponse -> statuscode == '0' ) { $ this -> accepted = 1 ; $ this -> resultcode = '0' ; } else { $ this -> accepted = 0 ; $ this -> setErrorParams ( ( string ) $ hostedAdminResponse -> statuscode ) ; } $ this -> transactionId = ( string ) $ hostedAdminResponse -> transaction [ 'id' ] ; $ this -> clientOrderNumber = ( string ) $ hostedAdminResponse -> transaction -> customerrefno ; }
formatXml() parses the annul transaction response xml into an object, and
 then sets the response attributes accordingly.
formatXml () parses the annul transaction response xml into an object and then sets the response attributes accordingly .