public function refreshAccessToken()
	{
		$newToken = $this->http->requestAccessToken();
		if (!is_null($newToken))
		{
			$this->config->setAccessToken($newToken);
			$this->http = new Request($this->guzzle, $this->config, $this->climate);
			if ($this->config->shouldStoreToken())
			{
				file_put_contents(Helper::getStoragePath($this->config->getStorageTokenFilename()), $newToken);
			}
		}

		return $newToken;
	}
public function refreshAccessToken()
	{
		$newToken = $this->http->requestAccessToken();
		if (!is_null($newToken))
		{
			$this->config->setAccessToken($newToken);
			$this->http = new Request($this->guzzle, $this->config, $this->climate);
			if ($this->config->shouldStoreToken())
			{
				file_put_contents(Helper::getStoragePath($this->config->getStorageTokenFilename()), $newToken);
			}
		}

		return $newToken;
	}
public function refreshAccessToken ( ) { $ newToken = $ this -> http -> requestAccessToken ( ) ; if ( ! is_null ( $ newToken ) ) { $ this -> config -> setAccessToken ( $ newToken ) ; $ this -> http = new Request ( $ this -> guzzle , $ this -> config , $ this -> climate ) ; if ( $ this -> config -> shouldStoreToken ( ) ) { file_put_contents ( Helper :: getStoragePath ( $ this -> config -> getStorageTokenFilename ( ) ) , $ newToken ) ; } } return $ newToken ; }
Get a new access token

@return string|null
@throws Exceptions\MissingCredentialException
@throws Exceptions\UnauthorizedMerchantException
Get a new access token