public function cancel(Varien_Object $payment) { parent::cancel($payment); Mage::helper('assist')->debug('cancel'); return $this; }
/** * Cancel payment * * @param Varien_Object $invoicePayment * @return Mage_Payment_Model_Abstract */ public function cancel(Varien_Object $payment) { parent::cancel($payment); return $this; }
/** * @desc Cancel order * @param Varien_Object $payment * @param type $amount * @return Adyen_Payment_Model_Adyen_Abstract */ public function cancel(Varien_Object $payment, $amount = null) { parent::cancel($payment); $this->writeLog("abstract -> cancel()" . get_class($this)); return $this; }
/** * Custom cancel behavior, deny cancel and force custom to use void instead * * @param Varien_Object $payment * @return void * @throws Mage_Core_Exception */ public function cancel(Varien_Object $payment) { /* * Important: If an order was voided successfully and the user clicks on cancel in order-view * this method is not triggered anymore */ //Proceed parent cancel method in case that regirstry value ops_auto_void is set if (true === Mage::registry('ops_auto_void')) { Mage::unregister('ops_auto_void'); return parent::cancel($payment); } //If order has state 'pending_payment' and the payment has Barclaycard-status 0 or null (unknown) then cancel the order if (true === $this->canCancelManually($payment->getOrder())) { $payment->getOrder()->addStatusHistoryComment($this->getHelper()->__("The order was cancelled manually. The Barclaycard-state is 0 or null.")); return parent::cancel($payment); } //Abort cancel method by throwing a Mage_Core_Exception throw new Mage_Core_Exception($this->getHelper()->__('Please use void to cancel the operation.')); }
public function cancel(Varien_Object $payment) { if (true === Mage::registry('postfinance_auto_void')) { Mage::unregister('postfinance_auto_void'); return parent::cancel($payment); } throw new Mage_Core_Exception($this->getHelper()->__('Please use void to cancel the operation.')); }