src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/RegionSpecificProperties.php
private function _getWidgetHostFor($region, $overrideUrl) 
	{
		if (empty($overrideUrl)) {
			return $this->_getRegionPropertyFor($region, $this->_widgetUrls);
		}
		
		return $overrideUrl;
	}
private function _getWidgetHostFor($region, $overrideUrl) 
	{
		if (empty($overrideUrl)) {
			return $this->_getRegionPropertyFor($region, $this->_widgetUrls);
		}
		
		return $overrideUrl;
	}
private function _getWidgetHostFor ( $ region , $ overrideUrl ) { if ( empty ( $ overrideUrl ) ) { return $ this -> _getRegionPropertyFor ( $ region , $ this -> _widgetUrls ) ; } return $ overrideUrl ; }
Return the correct host for the widget url based on the region

@param string $region 		us,uk,de,na
@param string $overrideUrl	override string for widget host

@return string widget host
Return the correct host for the widget url based on the region