Exemplo n.º 1
0
 /**
  * @param Mage_Sales_Model_Order|null $order
  *
  * @return $this
  */
 protected function _initPaymentByOrder(Mage_Sales_Model_Order $order = null)
 {
     if (empty($order)) {
         $order = $this->getInfo()->getOrder();
     }
     if ($this->_payments) {
         return $this;
     }
     $this->_payments = Mage::getModel('rede_clickpag/payments');
     $this->_payments->loadByOrderId($order->getId());
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @param Rede_ClickPag_Model_Payments $payments
  *
  * @return $this
  */
 public function setLastTransaction(Rede_ClickPag_Model_Payments $payments)
 {
     $this->setData('last_transaction_info', $payments->getData());
     return $this;
 }