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 ($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 #2
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()));
 }
 /**
  * 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;
     }
 }
 /**
  * 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 #5
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;
 }
 /**
  * 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 #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)
 {
     $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()));
 }
Beispiel #10
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;
 }
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $info = $this->getInfo();
     $transport = new Varien_Object();
     $transport = parent::_prepareSpecificInformation($transport);
     return $transport;
 }
Beispiel #12
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;
 }
 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;
 }
 /**
  * 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')->__('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;
 }
Beispiel #16
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')->__('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 #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')->__('Card Token') => $info->getCardToken(), Mage::helper('payment')->__('Charge Authorization No#') => $info->getChargeAuthorization()));
     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')->__('Cheque / DD No') => $info->getCheckNo(), Mage::helper('payment')->__('Drawee Bank') => $info->getDraweebank()));
     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')->__('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;
 }
 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;
 }
Beispiel #23
0
 /**
  * Add custom information to payment method information
  *
  * @param Varien_Object|array $transport
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     $data[$this->__('descriptor')] = $this->getInfo()->getAdditionalInformation('descriptor');
     $data[$this->__('transactionId')] = $this->getInfo()->getAdditionalInformation('transactionId');
     $data[$this->__('transactionShortId')] = $this->getInfo()->getAdditionalInformation('transactionShortId');
     return $transport->setData(array_merge($data, $transport->getData()));
 }
Beispiel #24
0
 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('slips')->__('Type')] = Mage::helper('slips')->__($ccType);
     }
     return $transport->setData(array_merge($data, $transport->getData()));
 }
Beispiel #25
0
 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation();
     $info = $this->getInfo();
     // Add OpenPay Specific information in case user selected this payment method
     if ($info->getMethod() == Mage::getModel('Openpay_Stores_Model_Method_Stores')->getCode()) {
         if (!$this->getIsSecureMode()) {
             $transport->addData(array(Mage::helper('payment')->__('Openpay Reference Number') => $info->getOpenpayBarcode(), Mage::helper('payment')->__('Openpay Confirmation Number') => $info->getOpenpayAuthorization(), Mage::helper('payment')->__('Openpay Creation Date') => $info->getOpenpayCreationDate()));
         }
     }
     return $transport;
 }
 /**
  * Add custom information to payment method information
  *
  * @param Varien_Object|array $transport
  */
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     $data['paymillTransactionId'] = $this->getInfo()->getAdditionalInformation('paymillTransactionId');
     $data['paymillPrenotificationDate'] = $this->getInfo()->getAdditionalInformation('paymillPrenotificationDate');
     $data['imgUrl'] = Mage::helper('paymill')->getImagePath() . "icon_paymill.png";
     return $transport->setData(array_merge($data, $transport->getData()));
 }
 protected function _prepareSpecificInformation($transport = null)
 {
     $transport = parent::_prepareSpecificInformation($transport);
     $data = array();
     $info = $this->getInfo();
     $additionalData = $info->getAdditionalData();
     if (strpos($additionalData, 'giftcard_number') !== false) {
         $gift = "Gift Card & ";
     }
     $data[Mage::helper("payment")->__("Payment Type")] = $gift . "Credit Card ending in " . $info->getCcLast4() . " (" . $info->getCcExpMonth() . "/" . $info->getCcExpYear() . ")";
     return $transport->setData(array_merge($data, $transport->getData()));
 }
Beispiel #28
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()->getCcType()) {
         $data[Mage::helper('payment')->__('Credit Card Type')] = $this->getInfo()->getCcType();
     }
     if ($this->getInfo()->getCcLast4()) {
         $data[Mage::helper('payment')->__('Credit Card Number')] = sprintf('xxxx-%s', $this->getInfo()->getCcLast4());
     }
     if ($this->getInfo()->getCcParcelas()) {
         $data[Mage::helper('payment')->__('Parcelamento')] = $this->getInfo()->getCcParcelas() . 'x';
     }
     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);
         }
     }
     if ($this->getInfo()->getOrder() && $this->getInfo()->getOrder()->hasData()) {
         $orderID = $this->getInfo()->getOrder()->getId();
         if ($orderID) {
             $gwap = Mage::getModel('gwap/order')->load($orderID, 'order_id');
             if ($gwap->hasData() && $gwap->getCaptureResult()) {
                 $TID = array();
                 $TID = unserialize($gwap->getCaptureResult());
                 if (isset($TID['ConnectorTxID1'])) {
                     $data['ConnectorTxID1'] = $TID['ConnectorTxID1'];
                 }
                 if (isset($TID['ConnectorTxID2'])) {
                     $data['ConnectorTxID2'] = $TID['ConnectorTxID2'];
                 }
                 if (isset($TID['ConnectorTxID3'])) {
                     $data['ConnectorTxID3'] = $TID['ConnectorTxID3'];
                 }
                 if (isset($TID['LR'])) {
                     $data['LR'] = $TID['LR'];
                 }
                 if (isset($TID['NSU'])) {
                     $data['NSU'] = $TID['NSU'];
                 }
             }
         }
     }
     return $transport->setData(array_merge($data, $transport->getData()));
 }
 /**
  * _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);
 }
Beispiel #30
0
 protected function _prepareSpecificInformation($transport = null)
 {
     if (null !== $this->_paymentSpecificInformation) {
         return $this->_paymentSpecificInformation;
     }
     $data = array();
     if ($this->getInfo()->getData('cp2forpos_ref_no')) {
         $data[Mage::helper('payment')->__('Reference No')] = $this->getInfo()->getData('cp2forpos_ref_no');
     }
     $transport = parent::_prepareSpecificInformation($transport);
     return $transport->setData(array_merge($data, $transport->getData()));
 }