 	# This method should be used to get the URL to redirect the user to when he chooses to logout.
 	# @return [String] the URL.
 	getChangeToAnonymousUserURL: =>
-		@HOST_URL + '/checkout/changeToAnonymousUser/' + @_getOrderFormId()
+		HOST_URL + '/checkout/changeToAnonymousUser/' + @_getOrderFormId()
 
 	#
 	# URL BUILDERS

			data: JSON.stringify(attachment)

		if options.abort and options.subject
			@subjectToJqXHRMap[options.subject]?.abort()
			@subjectToJqXHRMap[options.subject] = xhr

		return xhr


#
# Offers convenient methods for using the Checkout API in JS.
class Checkout

	HOST_URL = window.location.origin

	# Instantiate the SDK.
	#
	# @param hostURL [String] (default = window.location.origin) the base URL for API calls, without the trailing slash, e.g. "http://example.vtexcommerce.com.br".
	# @param ajax [Function] (default = $.ajax) an AJAX function that must follow the convention, i.e., accept an object of options such as 'url', 'type' and 'data', and return a promise.
	# @param promise [Function] (default = $.when) a promise function that must follow the Promises/A+ specification.
	# @return [VTEX] the SDK
	# @note hostURL configures a static variable. This means you can't have two different instances looking at different host URLs.
	constructor: (hostURL, ajax = $.ajax, promise = $.when) ->
		@ajax = (if window.AjaxQueue then window.AjaxQueue(ajax) else ajax)
		@promise = promise
		HOST_URL = hostURL if hostURL
		@CHECKOUT_ID = 'checkout'
		@orderForm = undefined
		@orderFormId = undefined
		@_requestingItem = undefined
		@_subjectToJqXHRMap = {}
		@_allOrderFormSections =
			[
				'items'
				'totalizers'
