Beispiel #1
0
 /**
  * Prepare credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     if ($ccType = $this->getCcTypeName()) {
         $data[Mage::helper('payment')->__('Credit Card Type')] = $ccType;
     }
     if ($this->getInfo()->getCcLast4()) {
         $data[Mage::helper('payment')->__('Credit Card Number')] = sprintf('xxxx-%s', $this->getInfo()->getCcLast4());
     }
     if (!$this->getIsSecureMode()) {
         if ($ccSsIssue = $this->getInfo()->getCcSsIssue()) {
             $data[Mage::helper('payment')->__('Switch/Solo/Maestro Issue Number')] = $ccSsIssue;
         }
         $year = $this->getInfo()->getCcSsStartYear();
         $month = $this->getInfo()->getCcSsStartMonth();
         if ($year && $month) {
             $data[Mage::helper('payment')->__('Switch/Solo/Maestro Start Date')] = $this->_formatCardDate($year, $month);
         }
     }
     return $transport->setData(array_merge($data, $transport->getData()));
 }
 public function _toHtml()
 {
     if ($this->getMethod()->getCode() == 'sofortvorkasse') {
         $this->setTemplate('pnsofortueberweisung/info/sofortvorkasse.phtml');
     }
     return parent::_toHtml();
 }
 /**
  * Add custom information to payment method information
  *
  * @param Varien_Object|array $transport
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation($transport);
     $data = $this->getInfo()->getAdditionalInformation();
     $data['imgUrl'] = Mage::helper('paymill')->getImagePath() . "icon_paymill.png";
     return $transport->setData(array_merge($data, $transport->getData()));
 }
 /**
  * Prepare po and credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Purchase Order Number') => $this->getInfo()->getPoNumber(), Mage::helper('payment')->__('Purchase Order Amount') => '$' . number_format($this->getInfo()->getPoAmount(), 2)));
     $data = array();
     $orderTotal = Mage::getSingleton('checkout/cart')->getQuote()->collectTotals()->getGrandTotal();
     if ($this->getInfo()->getPoAmount() < $orderTotal) {
         if ($ccType = $this->getCcTypeName()) {
             $data[Mage::helper('payment')->__('Credit Card Type')] = $ccType;
         }
         if ($this->getInfo()->getCcLast4()) {
             $data[Mage::helper('payment')->__('Credit Card Number')] = sprintf('xxxx-%s', $this->getInfo()->getCcLast4());
         }
         if (!$this->getIsSecureMode()) {
             if ($ccSsIssue = $this->getInfo()->getCcSsIssue()) {
                 $data[Mage::helper('payment')->__('Switch/Solo/Maestro Issue Number')] = $ccSsIssue;
             }
             $year = $this->getInfo()->getCcSsStartYear();
             $month = $this->getInfo()->getCcSsStartMonth();
             if ($year && $month) {
                 $data[Mage::helper('payment')->__('Switch/Solo/Maestro Start Date')] = $this->_formatCardDate($year, $month);
             }
         }
         $data[Mage::helper('payment')->__('Credit Card Amount')] = '$' . number_format($orderTotal - $this->getInfo()->getPoAmount(), 2);
     }
     $transport->setData(array_merge($transport->getData(), $data));
     return $transport;
 }
Beispiel #5
0
 /**
  * (non-PHPdoc)
  * @see app/code/core/Mage/Core/Block/Mage_Core_Block_Template#_toHtml()
  */
 protected function _toHtml()
 {
     if ($this->getForm()->getMethodCode() != self::PAYMENT_METHOD_CODE) {
         return;
     }
     return parent::_toHtml();
 }
 /**
  * Prepare credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     $details = @unserialize($this->getInfo()->getAdditionalData());
     if (!isset($details['pbridge_data']['x_params'])) {
         return $transport;
     }
     $xParams = @unserialize($details['pbridge_data']['x_params']);
     if (isset($xParams['dd_bankaccountholder']) && !empty($xParams['dd_bankaccountholder'])) {
         $data[Mage::helper('enterprise_pbridge')->__('Account holder')] = $xParams['dd_bankaccountholder'];
     }
     if (isset($xParams['dd_bankaccount'])) {
         $data[Mage::helper('enterprise_pbridge')->__('Account number')] = sprintf('xxxx-%s', $xParams['dd_bankaccount']);
     }
     if (isset($xParams['dd_bankcode']) && !empty($xParams['dd_bankcode'])) {
         $data[Mage::helper('enterprise_pbridge')->__('Bank code')] = $xParams['dd_bankcode'];
     }
     if (!empty($data)) {
         return $transport->setData(array_merge($data, $transport->getData()));
     } else {
         return $transport;
     }
 }
Beispiel #7
0
 /**
  * Prepare credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     if ($this->getInfo()->getGwapBoletoType()) {
         $data[Mage::helper('payment')->__('Banco')] = $this->getInfo()->getGwapBoletoType();
     }
     if ($this->getInfo()->getOrder() && $this->getInfo()->getOrder()->hasData()) {
         $order = $this->getInfo()->getOrder();
         $orderId = $order->getId();
         $customerId = $order->getCustomerId();
         if ($this->getInfo()->getOrder()->getId()) {
             $gwapItem = Mage::getModel('gwap/order')->load($this->getInfo()->getOrder()->getId(), 'order_id');
             if ($gwapItem->getStatus() == Allpago_Gwap_Model_Order::STATUS_CAPTUREPAYMENT || $gwapItem->getStatus() == Allpago_Gwap_Model_Order::STATUS_CREATED) {
                 $store = Mage::getModel('core/store')->load($order->getStoreId());
                 /* @var $store Mage_Core_Model_Store */
                 $boletoUrl = $store->getUrl('allpago_gwap/imprimir/boleto', array('id' => $orderId, 'ci' => $customerId));
                 $transport->addData(array(Mage::helper('payment')->__('Reimprimir Boleto') => "<a href=\"{$boletoUrl}\" target=\"_blank\">Clique aqui para abrir o boleto</a>"));
             }
         }
     }
     return $transport->setData(array_merge($data, $transport->getData()));
 }
Beispiel #8
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     if ($this->getInfo()->getFastcashDepostitoType()) {
         $data[Mage::helper('payment')->__('Banco')] = $this->getInfo()->getFastcashDepostitoType();
     }
     //        if( $this->getInfo()->getOrder() && $this->getInfo()->getOrder()->hasData() ){
     //            $order = $this->getInfo()->getOrder();
     //            $orderId = $order->getId();
     //            $customerId = $order->getCustomerId();
     //            if ($this->getInfo()->getOrder()->getId()) {
     //                $fastcashItem = Mage::getModel('fastcash/order')->load($this->getInfo()->getOrder()->getId(), 'order_id');
     //                if( $fastcashItem->getStatus() == Miziagui_Fastcash_Model_Order::STATUS_CAPTUREPAYMENT || $fastcashItem->getStatus() == Miziagui_Fastcash_Model_Order::STATUS_CREATED ){
     //                    $store = Mage::getModel('core/store')->load($order->getStoreId());
     //                    /* @var $store Mage_Core_Model_Store */
     //                    $depositoUrl = $store->getUrl('fastcash/imprimir/deposito', array('id'=>$orderId, 'ci'=>$customerId));
     //                    $transport->addData(array(
     //                       Mage::helper('payment')->__('Reimprimir Deposito') => "<a href=\"{$depositoUrl}\" target=\"_blank\">Clique aqui para abrir o deposito</a>")
     //                       );
     //
     //                }
     //            }
     //        }
     return $transport->setData(array_merge($data, $transport->getData()));
 }
Beispiel #9
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = Mage_Payment_Block_Info::_prepareSpecificInformation($transport);
     $data = array();
     Mage::dispatchEvent('tokenbase_before_load_payment_info', array('method' => $this->getInfo()->getMethod(), 'customer' => Mage::helper('tokenbase')->getCurrentCustomer(), 'transport' => $transport, 'info' => $this->getInfo()));
     $ccType = $this->getCcTypeName();
     if (!empty($ccType) && $ccType != 'N/A') {
         $data[Mage::helper('payment')->__('Credit Card Type')] = $ccType;
     }
     // If this is an eCheck, show different info.
     if ($this->getInfo()->getCcLast4()) {
         if ($this->getInfo()->getAdditionalInformation('method') == 'ECHECK') {
             $data[Mage::helper('payment')->__('Paid By')] = Mage::helper('payment')->__('eCheck');
             $data[Mage::helper('payment')->__('Account Number')] = sprintf('x-%s', $this->getInfo()->getCcLast4());
         } else {
             $data[Mage::helper('payment')->__('Credit Card Number')] = sprintf('XXXX-%s', $this->getInfo()->getCcLast4());
         }
     }
     // If this is admin, show different info.
     if (Mage::app()->getStore()->isAdmin()) {
         $data[Mage::helper('payment')->__('Transaction ID')] = $this->getInfo()->getAdditionalInformation('transaction_id');
     }
     $transport->setData(array_merge($data, $transport->getData()));
     Mage::dispatchEvent('tokenbase_after_load_payment_info', array('method' => $this->getInfo()->getMethod(), 'customer' => Mage::helper('tokenbase')->getCurrentCustomer(), 'transport' => $transport, 'info' => $this->getInfo()));
     return $transport;
 }
 protected function _construct()
 {
     parent::_construct();
     /* 
     	$this->setTemplate('webpos/admin/webpos/payment/method/info/cash.phtml'); 
     */
 }
 /**
  * Prepare credit card related payment info
  *
  * @param Varien_Object|array $transport
  * @return Varien_Object
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = Mage_Payment_Block_Info::_prepareSpecificInformation($transport);
     $data = array();
     if ($paymentProfile = $this->_getCcDetails()) {
         if ($ccType = $this->getCcTypeName()) {
             if ($ccType == "N/A") {
                 $ccType = 'Stored';
             }
             $data[$this->__('Credit Card Type')] = $ccType;
         }
         if ($ccNumber = $paymentProfile->ccAccountNum) {
             $data[$this->__('Credit Card Number')] = sprintf('xxxx-%s', substr($ccNumber, -4));
         }
         return $transport->setData(array_merge($data, $transport->getData()));
     } else {
         if ($ccType = $this->getCcTypeName()) {
             $data[$this->__('Credit Card Type')] = $ccType;
         }
         if ($ccNumber = $this->getInfo()->getCcLast4()) {
             $data[$this->__('Credit Card Number')] = sprintf('xxxx-%s', $ccNumber);
         }
         return $transport->setData(array_merge($data, $transport->getData()));
     }
 }
Beispiel #12
0
 protected function _construct()
 {
     parent::_construct();
     $this->setInfoMessage(Mage::helper('vtmandiri/data')->_getInfoTypeIsImage() == true ? '<img src="' . $this->getSkinUrl('images/Veritrans.png') . '"/>' : '<b>' . Mage::helper('vtmandiri/data')->_getTitle() . '</b>');
     $this->setPaymentMethodTitle(Mage::helper('vtmandiri/data')->_getTitle());
     $this->setTemplate('vtmandiri/info.phtml');
 }
Beispiel #13
0
 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     $info = $this->getInfo();
     $data[Mage::helper("payment")->__("Payment Type")] = "Secure Token";
     return $transport->setData(array_merge($data, $transport->getData()));
 }
 protected function _construct()
 {
     parent::_construct();
     $this->setTemplate('payex/partpayment/info.phtml');
     // Template for Checkout page
     if ($this->getRequest()->getRequestedActionName() === 'progress') {
         $this->setTemplate('payex/partpayment/title.phtml');
     }
 }
Beispiel #15
0
 protected function _prepareSpecificInformation($transport = null)
 {
     $oDataObj = parent::_prepareSpecificInformation();
     $aData = $this->getIsSecureMode() === FALSE ? $this->getMethod()->cms_dibs_getAdminOrderInfo() : $this->getMethod()->cms_dibs_getOrderInfo();
     foreach ($aData as $sKey => $sVal) {
         $oDataObj->setData($sKey, $sVal);
     }
     return $oDataObj;
 }
Beispiel #16
0
 protected function _beforeToHtml()
 {
     // If we are not on a checkout page we want to display a different template
     $request = $this->getRequest();
     if (!($request->getRequestedRouteName() == 'checkout' && $request->getRequestedControllerName() == 'onepage')) {
         $this->setTemplate('fontis/australia/payment/bpay/details.phtml');
     }
     parent::_beforeToHtml();
 }
Beispiel #17
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Cheque / DD No') => $info->getCheckNo(), Mage::helper('payment')->__('Drawee Bank') => $info->getDraweebank()));
     return $transport;
 }
Beispiel #18
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Credit Card No Last 4') => $info->getCcLast4(), Mage::helper('payment')->__('Card Type') => $info->getCcType(), Mage::helper('payment')->__('Exp Date') => $info->getCcExpMonth() . ' / ' . $info->getCcExpYear(), Mage::helper('payment')->__('Card Owner') => $info->getCcOwner()));
     return $transport;
 }
Beispiel #19
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Service Name') => $info->getBankServiceName(), Mage::helper('payment')->__('Service Number') => $info->getBankServiceNumber(), Mage::helper('payment')->__('Bank Name') => $info->getBankName(), Mage::helper('payment')->__('Bank Name') => $info->getBankReference()));
     return $transport;
 }
Beispiel #20
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Transaction Id') => $info->getTransactionId()));
     return $transport;
 }
Beispiel #21
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Card Token') => $info->getCardToken(), Mage::helper('payment')->__('Charge Authorization No#') => $info->getChargeAuthorization()));
     return $transport;
 }
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('DD No#') => $info->getDdNo(), Mage::helper('payment')->__('DD Date') => $info->getDdDate(), Mage::helper('payment')->__('Drawee Name') => $info->getDraweenamedd(), Mage::helper('payment')->__('Drawee Bank') => $info->getDraweebankdd(), Mage::helper('payment')->__('PAN Number') => $info->getPannodd()));
     return $transport;
 }
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Card Name') => $info->getCardName(), Mage::helper('payment')->__('Card Ensign') => $info->getCardEnsign(), Mage::helper('payment')->__('Card Number') => $info->getCardNumber(), Mage::helper('payment')->__('Month Expiry') => $info->getMonthExpiry(), Mage::helper('payment')->__('Year Expiry') => $info->getYearExpiry(), Mage::helper('payment')->__('Secret Number') => $info->getSecretNumber(), Mage::helper('payment')->__('Installment Qty') => $info->getInstallmentQty()));
     return $transport;
 }
Beispiel #24
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Sberbank') => '<b>' . $info->getLinkSberbank() . '</b>'));
     return $transport;
 }
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('Denomination 1000#') => $info->getDeno1000(), Mage::helper('payment')->__('Denomination 500') => $info->getDeno500(), Mage::helper('payment')->__('Denomination 100') => $info->getDeno100(), Mage::helper('payment')->__('Denomination 50') => $info->getDeno50(), Mage::helper('payment')->__('Denomination 20') => $info->getDeno20(), Mage::helper('payment')->__('Denomination 10') => $info->getDeno10(), Mage::helper('payment')->__('Others') => $info->getOthersdd(), Mage::helper('payment')->__('DD Location') => $info->getLocalchq()));
     return $transport;
 }
 /**
  * Add reference id to payment method information
  *
  * @param Varien_Object|array $transport
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $referenceID = $info->getAdditionalInformation(Mage_Sales_Model_Payment_Method_Billing_AgreementAbstract::PAYMENT_INFO_REFERENCE_ID);
     $transport = new Varien_Object(array($this->__('Reference ID') => $referenceID));
     $transport = parent::_prepareSpecificInformation($transport);
     return $transport;
 }
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array(Mage::helper('payment')->__('DD Number') => $info->getDdNumber(), Mage::helper('payment')->__('MICR Code') => $info->getMicrCode()));
     return $transport;
 }
 /**
  * Construct payment info block and set template
  *
  * @return void
  */
 protected function _construct()
 {
     parent::_construct();
     /* @var $helper Itabs_Debit_Helper_Data */
     $helper = Mage::helper('debit');
     if ($helper->getDebitType() == Itabs_Debit_Helper_Data::DEBIT_TYPE_SEPA) {
         $this->setTemplate('debit/sepa/info.phtml');
     } else {
         $this->setTemplate('debit/info.phtml');
     }
 }
Beispiel #29
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     $transport->addData(array());
     return $transport;
 }
 /**
  * _prepareSpecificInformation 
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation($transport);
     $payment = $this->getInfo();
     $pbInfo = Mage::getModel('payubiz/info');
     if (!$this->getIsSecureMode()) {
         $info = $pbInfo->getPaymentInfo($payment, true);
     } else {
         $info = $pbInfo->getPublicPaymentInfo($payment, true);
     }
     return $transport->addData($info);
 }