Model/PayapiPaymentMethod.php
public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
    {
        $this->_logger->debug("isAvaliable Payapi");

        if (!$this->getConfigData('payapi_api_key') || !$this->getConfigData('payapi_public_id')) {
            return false;
        }

        return parent::isAvailable($quote);
    }
public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
    {
        $this->_logger->debug("isAvaliable Payapi");

        if (!$this->getConfigData('payapi_api_key') || !$this->getConfigData('payapi_public_id')) {
            return false;
        }

        return parent::isAvailable($quote);
    }
public function isAvailable ( \ Magento \ Quote \ Api \ Data \ CartInterface $ quote = null ) { $ this -> _logger -> debug ( "isAvaliable Payapi" ) ; if ( ! $ this -> getConfigData ( 'payapi_api_key' ) || ! $ this -> getConfigData ( 'payapi_public_id' ) ) { return false ; } return parent :: isAvailable ( $ quote ) ; }
Determine method availability based on quote amount and config data

@param \Magento\Quote\Api\Data\CartInterface|null $quote
@return bool
Determine method availability based on quote amount and config data