/**
  * prepare instances of the config model and the helper.
  */
 protected function _construct()
 {
     parent::_construct();
     $this->_helper = Mage::helper('ebayenterprise_paypal');
     $this->_config = $this->_helper->getConfigModel();
     $this->_logger = Mage::helper('ebayenterprise_magelog');
     $this->_context = Mage::helper('ebayenterprise_magelog/context');
 }
 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->_helper = Mage::helper('ebayenterprise_paypal');
     $this->_config = $this->_helper->getConfigModel();
     $locale = Mage::app()->getLocale();
     $this->setTemplate('ebayenterprise_paypal/payment/mark.phtml')->setPaymentAcceptanceMarkHref($this->getPaymentMarkWhatIsPaypalUrl($locale))->setPaymentAcceptanceMarkSrc($this->getPaymentMarkImageUrl($locale->getLocaleCode()));
     return parent::_construct();
 }
 /**
  * Set up the paypal helper.
  */
 public function _construct()
 {
     parent::_construct();
     $app = Mage::app();
     $locale = $app->getLocale();
     $this->_coreHelper = $this->helper('core');
     $this->_paymentHelper = Mage::helper('payment');
     $this->_helper = Mage::helper('ebayenterprise_paypal');
     $this->_config = $this->_helper->getConfigModel();
     $this->_localeCode = $locale->getLocaleCode();
     $url = $this->_config->shortcutExpressCheckoutButton ?: self::DEFAULT_IMAGE_URL;
     $this->_payPalImageUrl = str_replace(array('{locale_code}'), array($this->_localeCode), $url);
     $this->_htmlId = $this->_coreHelper->uniqHash(self::HTML_ID_PREFIX);
 }
 /**
  * Set template and redirect message
  */
 protected function _construct()
 {
     $this->helper = Mage::helper('ebayenterprise_paypal');
     $this->config = $this->helper->getConfigModel();
     $this->setTemplate('ebayenterprise_paypal/payment/mark.phtml');
 }
 /**
  * `__construct` overridden in Mage_Payment_Model_Method_Abstract as a no-op.
  * Override __construct here as the usual protected `_construct` is not called.
  *
  * @param array $initParams May contain:
  *     -  'selection_helper' => EbayEnterprise_PayPal_Helper_Item_Selection
  *     -  'helper' => EbayEnterprise_PayPal_Helper_Data
  *     -  'core_helper' => EbayEnterprise_Eb2cCore_Helper_Data
  *     -  'logger' => EbayEnterprise_MageLog_Helper_Data
  *     -  'context' => EbayEnterprise_MageLog_Helper_Context
  */
 public function __construct(array $initParams = array())
 {
     list($this->selectionHelper, $this->helper, $this->coreHelper, $this->logger, $this->logContext) = $this->checkTypes($this->nullCoalesce($initParams, 'selection_helper', Mage::helper('ebayenterprise_paypal/item_selection')), $this->nullCoalesce($initParams, 'helper', Mage::helper('ebayenterprise_paypal')), $this->nullCoalesce($initParams, 'core_helper', Mage::helper('eb2ccore')), $this->nullCoalesce($initParams, 'logger', Mage::helper('ebayenterprise_magelog')), $this->nullCoalesce($initParams, 'log_context', Mage::helper('ebayenterprise_magelog/context')));
     $this->config = $this->helper->getConfigModel();
 }