/** * Get config peyment action * * @return string */ public function getConfigPaymentAction() { if ('pending' == $this->getConfigData('order_status')) { return Mage_Payment_Model_Method_Abstract::ACTION_AUTHORIZE; } return parent::getConfigPaymentAction(); }
/** * Get config payment action, do nothing if status is pending * * @return string|null */ public function getConfigPaymentAction() { return $this->getConfigData('order_status') == 'pending' ? null : parent::getConfigPaymentAction(); }
public function getConfigPaymentAction() { return $this->getConfigData('async') == '1' ? 'order' : parent::getConfigPaymentAction(); }