Exemple #1
0
 /**
  * @return Mage_Core_Model_Abstract|void
  */
 public function save()
 {
     $api_key = $this->getValue();
     $responseJson = $this->testQuote($api_key);
     if (!isset($responseJson->status)) {
         $helper = Mage::helper('intelipost');
         // Mage::getSingleton('core/session')->addWarning($helper->__('Invalid ApiUrl/ApiKey combination'));
         Mage::throwException($helper->__('Invalid ApiUrl/ApiKey combination'));
     }
     parent::save();
 }
Exemple #2
0
 public function save()
 {
     $useraccount = $this->getValue();
     parent::save();
 }
Exemple #3
0
 public function save()
 {
     $password = $this->getValue();
     parent::save();
 }
Exemple #4
0
 public function save()
 {
     $token = $this->getValue();
     parent::save();
 }
Exemple #5
0
 public function save()
 {
     $api_url = $this->getValue();
     parent::save();
 }