/** * (non-PHPdoc) * @see Mage_Payment_Model_Method_Abstract::capture() */ public function capture(Varien_Object $payment, $amount) { parent::capture($payment, $amount); if ($this->isPreauthorizeCapture($payment)) { $this->_preauthorizeCapture($payment, $amount); } $payment->setSkipTransactionCreation(true); return $this; }
/** * Check whether there are CC types set in configuration * * @param Mage_Sales_Model_Quote|null $quote * @return bool */ public function isAvailable($quote = null) { return $this->getConfigData('cctypes', $quote ? $quote->getStoreId() : null) && parent::isAvailable($quote); }