setTemplate('moneybookers/form.phtml'); } /** * Return payment logo image src * * @param string $payment Payment Code * @return string|bool */ public function getPaymentImageSrc($payment) { if ($payment == 'moneybookers_obt') { $payment .= '_'.$this->getInfoLocale(); } $imageFilename = Mage::getDesign() ->getFilename('images' . DS . 'moneybookers' . DS . $payment, array('_type' => 'skin')); if (file_exists($imageFilename . '.png')) { return $this->getSkinUrl('images/moneybookers/' . $payment . '.png'); } else if (file_exists($imageFilename . '.gif')) { return $this->getSkinUrl('images/moneybookers/' . $payment . '.gif'); } return false; } /** * Return supported locale for information text * * @return string */ public function getInfoLocale() { $locale = substr(Mage::app()->getLocale()->getLocaleCode(), 0 ,2); if (!in_array($locale, $this->_supportedInfoLocales)) { $locale = $this->_defaultInfoLocale; } return $locale; } /** * Return info URL for eWallet payment * * @return string */ public function getWltInfoUrl() { $locale = substr(Mage::app()->getLocale()->getLocaleCode(), 0 ,2); return 'http://www.moneybookers.com/app/?l=' . strtoupper($locale); } }