Trustly/Api/api.php
public function baseURL() {
		if($this->api_is_https) {
			$url = 'https://' . $this->api_host . ($this->api_port != 443?':'.$this->api_port:'');
		} else {
			$url = 'http://' . $this->api_host . ($this->api_port != 80?':'.$this->api_port:'');
		}
		return $url;
	}
public function baseURL() {
		if($this->api_is_https) {
			$url = 'https://' . $this->api_host . ($this->api_port != 443?':'.$this->api_port:'');
		} else {
			$url = 'http://' . $this->api_host . ($this->api_port != 80?':'.$this->api_port:'');
		}
		return $url;
	}
public function baseURL ( ) { if ( $ this -> api_is_https ) { $ url = 'https://' . $ this -> api_host . ( $ this -> api_port != 443 ? ':' . $ this -> api_port : '' ) ; } else { $ url = 'http://' . $ this -> api_host . ( $ this -> api_port != 80 ? ':' . $ this -> api_port : '' ) ; } return $ url ; }
Return a properly formed url to communicate with this API.

@return URL pointing to the API peer.
Return a properly formed url to communicate with this API .