Exemple #1
0
 /**
  * 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();
 }
Exemple #2
0
 /**
  * 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();
 }
Exemple #3
0
 public function getConfigPaymentAction()
 {
     return $this->getConfigData('async') == '1' ? 'order' : parent::getConfigPaymentAction();
 }