/**
  * Validate payment method information object
  *
  * @param   Mage_Payment_Model_Info $info
  * @return  Mage_Payment_Model_Abstract
  */
 public function validate()
 {
     if (AW_Sarp_Model_Subscription::isIterating()) {
         return $this;
     } else {
         return parent::validate();
     }
 }
 public function validate()
 {
     $info = $this->getInfoInstance();
     $orderTotal = Mage::getSingleton('checkout/cart')->getQuote()->collectTotals()->getGrandTotal();
     if ($info->getPoAmount() < $orderTotal) {
         parent::validate();
         // trigger CC validation
     }
     $no = $info->getPoNumber();
     $amount = $info->getPoAmount();
     if (empty($no) || empty($amount)) {
         $errorCode = 'invalid_data';
         $errorMsg = $this->_getHelper()->__('Purchase Order Number and Purchase Order Amount are required fields');
     }
     if ($errorMsg) {
         Mage::throwException($errorMsg);
     }
     return $this;
 }
 public function validate()
 {
     $info = $this->getInfoInstance();
     $errorMsg = false;
     $availableTypes = explode(',', $this->getConfigData('cctypes'));
     $token = $this->_getToken($info);
     if ($token == 'manual') {
         parent::validate();
     } else {
         $this->_validateToken();
     }
     return $this;
 }