Ejemplo n.º 1
0
 /**
  * Retrieve card info object
  *
  * @return mixed
  */
 public function getInfo()
 {
     if ($this->hasCardInfoObject()) {
         return $this->getCardInfoObject();
     }
     return parent::getInfo();
 }
Ejemplo n.º 2
0
 protected function _construct()
 {
     parent::_construct();
     if (Mage::getSingleton('core/translate')->getTranslateInline() === false && Mage::app()->getStore()->isAdmin()) {
         //For Emails
         $this->setTemplate('sagepaysuite/payment/info/base-basic.phtml');
     } else {
         $this->setTemplate('sagepaysuite/payment/info/base.phtml');
     }
 }
Ejemplo n.º 3
0
 /**
  * Prepare specific payment information
  *
  * @param Varien_Object|array $transport
  * return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation($transport);
     $data = $this->getInfo()->getAdditionalData();
     if (empty($data)) {
         return $transport;
     }
     $obj_data = unserialize($data);
     return $transport->addData(array($this->__('Payment Number') => $obj_data['VK_T_NO'], $this->__('Payer\'s Account') => $obj_data['VK_SND_ACC'], $this->__('Payer\'s Name') => $obj_data['VK_SND_NAME']));
 }
Ejemplo n.º 4
0
 /**
  * Prepare PayPal-specific payment information
  *
  * @param Varien_Object|array $transport
  * return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation($transport);
     $payment = $this->getInfo();
     $paypalInfo = Mage::getModel('paypal/info');
     if (!$this->getIsSecureMode()) {
         $info = $paypalInfo->getPaymentInfo($payment, true);
     } else {
         $info = $paypalInfo->getPublicPaymentInfo($payment, true);
     }
     return $transport->addData($info);
 }
Ejemplo n.º 5
0
 /**
  * Show name on card, expiration date and full cc number
  *
  * Expiration date and full number will show up only in secure mode (only for admin, not in emails or pdfs)
  *
  * @param Varien_Object|array $transport
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object(array(Mage::helper('payment')->__('Name on the Card') => $info->getCcOwner()));
     $transport = parent::_prepareSpecificInformation($transport);
     if (!$this->getIsSecureMode()) {
         $transport->addData(array(Mage::helper('payment')->__('Expiration Date') => $this->_formatCardDate($info->getCcExpYear(), $this->getCcExpMonth()), Mage::helper('payment')->__('Credit Card Number') => $info->getCcNumber()));
     }
     return $transport;
 }
Ejemplo n.º 6
0
 protected function _construct()
 {
     parent::_construct();
     #Only when order is saved
     if ((Mage::registry('current_order') || $this->getOnMemo() || $this->getOnInvoice()) && Mage::app()->getStore()->isAdmin()) {
         $this->setChild('repeats.list', Mage::getModel('core/layout')->createBlock('core/template', 'repeats.li')->setTemplate('sagepaysuite/payment/info/repeats.phtml'));
         $this->setChild('refunds.list', Mage::getModel('core/layout')->createBlock('core/template', 'refunds.li')->setTemplate('sagepaysuite/payment/info/refunds.phtml'));
         $this->setChild('authorise.list', Mage::getModel('core/layout')->createBlock('core/template', 'authorise.li')->setTemplate('sagepaysuite/payment/info/authorises.phtml'));
     }
     if (Mage::getSingleton('core/translate')->getTranslateInline() === false && Mage::app()->getStore()->isAdmin()) {
         //For Emails
         $this->setTemplate('sagepaysuite/payment/info/base-basic.phtml');
     } else {
         $this->setTemplate('sagepaysuite/payment/info/base.phtml');
     }
 }
Ejemplo n.º 7
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('datatrans/hiddenmode/info/cc.phtml');
 }
Ejemplo n.º 8
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('totalcoin/standard/info.phtml');
     $this->setModuleName('Mage_Payment');
 }
Ejemplo n.º 9
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('azpay/info/cc.phtml');
 }
Ejemplo n.º 10
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('bradfellows/info/tokenized.phtml');
 }
Ejemplo n.º 11
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('mercadopago/custom_ticket/info.phtml');
     $this->setModuleName('Mage_Payment');
 }
Ejemplo n.º 12
0
 /**
  * Init default template for block
  */
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('moneybookerspsp/info/cc.phtml');
 }
Ejemplo n.º 13
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('magebase/dps/pxpost/info.phtml');
 }
Ejemplo n.º 14
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('cybersource/info.phtml');
 }
Ejemplo n.º 15
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('payment/info/ccsave.phtml');
 }
Ejemplo n.º 16
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('amex/info.phtml');
 }
Ejemplo n.º 17
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('fontis/ewayau/cc/info.phtml');
 }
Ejemplo n.º 18
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('paypaluk/direct/info.phtml');
 }
Ejemplo n.º 19
0
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('merchantware/directpost/info.phtml');
 }