예제 #1
0
파일: Ideal.php 프로젝트: LybeAB/magento
 public function validate()
 {
     parent::validate();
     $info = $this->getInfoInstance();
     $hppType = $info->getCcType();
     // validate if the ideal bank is chosen
     if ($hppType == "ideal") {
         if ($info->getPoNumber() == "") {
             // hpp type is empty throw error
             Mage::throwException(Mage::helper('adyen')->__('You chose an invalid bank'));
         }
     }
 }