/** * Decrypt and test current saved token */ public function _afterSave() { $token = Mage::helper('core')->decrypt($this->getValue()); if (!empty($token) && $token != $this->getOldValue()) { $valid = $this->testToken($this->getFieldsetDataValue('merchant_email'), $token); if ($valid !== true) { Mage::getSingleton('core/session')->addWarning($valid); } } parent::_afterSave(); }