public function getAVSCode()
    {
        if (isset($this->data->transactionResponse)) {
            return (string)$this->data->transactionResponse->avsResultCode;
        } else {
            return '';
        }
    }
public function getAVSCode()
    {
        if (isset($this->data->transactionResponse)) {
            return (string)$this->data->transactionResponse->avsResultCode;
        } else {
            return '';
        }
    }
public function getAVSCode ( ) { if ( isset ( $ this -> data -> transactionResponse ) ) { return ( string ) $ this -> data -> transactionResponse -> avsResultCode ; } else { return '' ; } }
Returns the Address Verification Service return code.

@return string A single character. Can be A, B, E, G, N, P, R, S, U, X, Y, or Z.
Returns the Address Verification Service return code .