private function hasToken()
    {
        $token = $this->_scopeConfig->getValue('payment/pagseguro/token');
        // check for a e-mail
        if (!isset($token))
            return false;

        // check is the e-mail is valid
        if ($this->isValidToken($token))
            return true;
        return false;
    }
private function hasToken()
    {
        $token = $this->_scopeConfig->getValue('payment/pagseguro/token');
        // check for a e-mail
        if (!isset($token))
            return false;

        // check is the e-mail is valid
        if ($this->isValidToken($token))
            return true;
        return false;
    }
private function hasToken ( ) { $ token = $ this -> _scopeConfig -> getValue ( 'payment/pagseguro/token' ) ; // check for a e-mail if ( ! isset ( $ token ) ) return false ; // check is the e-mail is valid if ( $ this -> isValidToken ( $ token ) ) return true ; return false ; }
Check if has a valid token

@return bool
Check if has a valid token