public function buildUrl($apiEndPoint)
    {
        if (is_null($this->request['url'])) {
            return $apiEndPoint . '/' . $this->uri . ($this->queryStr ? '?' . http_build_query($this->queryStr) : '');
        }
        if (strpos($this->url, $apiEndPoint) !== 0) {
            throw new PaysafeException('Unexpected endpoint in url: ' . $this->url . ' expected: ' . $apiEndPoint);
        }
        return $this->url;
    }
public function buildUrl($apiEndPoint)
    {
        if (is_null($this->request['url'])) {
            return $apiEndPoint . '/' . $this->uri . ($this->queryStr ? '?' . http_build_query($this->queryStr) : '');
        }
        if (strpos($this->url, $apiEndPoint) !== 0) {
            throw new PaysafeException('Unexpected endpoint in url: ' . $this->url . ' expected: ' . $apiEndPoint);
        }
        return $this->url;
    }
public function buildUrl ( $ apiEndPoint ) { if ( is_null ( $ this -> request [ 'url' ] ) ) { return $ apiEndPoint . '/' . $ this -> uri . ( $ this -> queryStr ? '?' . http_build_query ( $ this -> queryStr ) : '' ) ; } if ( strpos ( $ this -> url , $ apiEndPoint ) !== 0 ) { throw new PaysafeException ( 'Unexpected endpoint in url: ' . $ this -> url . ' expected: ' . $ apiEndPoint ) ; } return $ this -> url ; }
Build url for the paysafe api client.

@param string $apiEndPoint
@return string
@throws PaysafeException if the url has been set, and does not match the endpoint.
Build url for the paysafe api client .