public function savePaymentMethodInfo() { $payment = $this->getPayment(); if ($this->getBankBankaccountId()) { $bankAccount = Mage::getModel('affiliatepluspayment/bankaccount')->load($this->getBankBankaccountId()); $this->setBankaccountId($bankAccount->getId())->setBankaccountHtml($bankAccount->format(true)); } $this->setInvoiceNumber($this->getBankInvoiceNumber())->setMessage($this->getBankMessage()); $this->setPaymentId($payment->getId())->save(); return parent::savePaymentMethodInfo(); }
public function savePaymentMethodInfo() { $payment = $this->getPayment(); if ($this->getOfflineAddressId()) { $address = Mage::getModel('customer/address')->load($this->getOfflineAddressId()); $this->setAddressId($address->getId())->setAddressHtml($address->format('html')); } $this->setTransferInfo($this->getOfflineTransferInfo())->setMessage($this->getOfflineMessage()); $this->setPaymentId($payment->getId())->save(); return parent::savePaymentMethodInfo(); }
/** * Save Payment Method Information * * @return Magestore_Affiliateplus_Model_Payment_Abstract */ public function savePaymentMethodInfo() { $this->setPaymentId($this->getPayment()->getId())->save(); return parent::savePaymentMethodInfo(); }