本文整理汇总了PHP中Mage_Payment_Model_Method_Cc::isAvailable方法的典型用法代码示例。如果您正苦于以下问题:PHP Mage_Payment_Model_Method_Cc::isAvailable方法的具体用法?PHP Mage_Payment_Model_Method_Cc::isAvailable怎么用?PHP Mage_Payment_Model_Method_Cc::isAvailable使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mage_Payment_Model_Method_Cc
的用法示例。
在下文中一共展示了Mage_Payment_Model_Method_Cc::isAvailable方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: isAvailable
public function isAvailable($quote = null)
{
if ($quote && $quote->getBaseGrandTotal() < $this->_minOrderTotal) {
return false;
}
return $this->getConfigData('api_key', $quote ? $quote->getStoreId() : null) && parent::isAvailable($quote);
}
示例2: isAvailable
/**
* Check if we're on a secure page and run
* the parent verification
*
* @param Mage_Sales_Model_Quote|null $quote
*
* @return bool
*/
public function isAvailable($quote = null)
{
$isSecure = (bool) Mage::app()->getStore()->isCurrentlySecure();
if (!$isSecure) {
return false;
}
return parent::isAvailable($quote);
}
示例3: isAvailable
/**
* Check whether payment method can be used
*
* @param Mage_Sales_Model_Quote
* @return bool
*/
public function isAvailable($quote = null)
{
$storeId = Mage::app()->getStore($this->getStore())->getId();
$config = Mage::getModel('paypal/config')->setStoreId($storeId);
if (parent::isAvailable($quote) && $config->isMethodAvailable($this->getCode())) {
return true;
}
return false;
}
示例4: isAvailable
/**
* Check whether payment method can be used
* @param Mage_Sales_Model_Quote
* @return bool
*/
public function isAvailable($quote = null)
{
if (parent::isAvailable($quote) && $this->_pro->getConfig()->isMethodAvailable()) {
return true;
}
return false;
}
示例5: isAvailable
/**
* Check whether payment method can be used
*
* This method is available only if Payment bridge is on. So we must check this own method's
* settings and pbridge's settings
*
* @return bool
*/
public function isAvailable($quote = null)
{
$storeId = $quote ? $quote->getStoreId() : null;
return Mage::helper('enterprise_pbridge')->isEnabled($storeId) && parent::isAvailable();
}
示例6: isAvailable
/**
* Payment method available?
*/
public function isAvailable($quote = null)
{
if ($this->getConfigData('active') && parent::isAvailable()) {
return true;
}
return false;
}