Example #1
0
 public function assignData($data)
 {
     if (!$data instanceof Varien_Object) {
         $data = new Varien_Object($data);
     }
     $info = $this->getInfoInstance();
     $hppType = $data->getHppType();
     $info->setCcType($hppType)->setPoNumber($data->getData('hpp_ideal_type'));
     /* @note misused field */
     $config = Mage::getStoreConfig("payment/adyen_hpp/disable_hpptypes");
     if (empty($hppType) && empty($config)) {
         Mage::throwException(Mage::helper('adyen')->__('Payment Method is complusory in order to process your payment'));
     }
     return $this;
 }
Example #2
0
 public function assignData($data)
 {
     if (!$data instanceof Varien_Object) {
         $data = new Varien_Object($data);
     }
     $info = $this->getInfoInstance();
     $hppType = $data->getHppType();
     // get the label name and save it so we can show it in the information tab
     $hppTypeLabel = "hpp_type_label_";
     $hppTypeLabelValue = $data->getData($hppTypeLabel . $hppType);
     $info->setAdditionalInformation('hpp_type_label', $hppTypeLabelValue);
     $info->setCcType($hppType)->setPoNumber($data->getData('hpp_ideal_type'));
     /* @note misused field */
     $config = Mage::getStoreConfig("payment/adyen_hpp/disable_hpptypes");
     if (empty($hppType) && empty($config)) {
         Mage::throwException(Mage::helper('adyen')->__('Payment Method is complusory in order to process your payment'));
     }
     return $this;
 }