src/AmazonPaymentBundle/lib/amazon/OffAmazonPaymentsService/RegionSpecificProperties.php
public function getWidgetUrlFor($region, $environment, $merchantId, $overrideUrl)
	{
		return sprintf(self::WIDGET_FORMAT_STRING, 
					$this->_getWidgetHostFor($region, $overrideUrl), 
					$this->_getWidgetRegionFor($region), 
			    	$this->_getWidgetEnvironmentFor($environment),
					urlencode($merchantId));
	}
public function getWidgetUrlFor($region, $environment, $merchantId, $overrideUrl)
	{
		return sprintf(self::WIDGET_FORMAT_STRING, 
					$this->_getWidgetHostFor($region, $overrideUrl), 
					$this->_getWidgetRegionFor($region), 
			    	$this->_getWidgetEnvironmentFor($environment),
					urlencode($merchantId));
	}
public function getWidgetUrlFor ( $ region , $ environment , $ merchantId , $ overrideUrl ) { return sprintf ( self :: WIDGET_FORMAT_STRING , $ this -> _getWidgetHostFor ( $ region , $ overrideUrl ) , $ this -> _getWidgetRegionFor ( $ region ) , $ this -> _getWidgetEnvironmentFor ( $ environment ) , urlencode ( $ merchantId ) ) ; }
Return the correct widget url for the javascript widget

@param string $region
@param string $environment
@param string $merchantId
@param string $overrideUrl

@return string widgetUrl
Return the correct widget url for the javascript widget