Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-payment
Model
Checks
ZeroTotal.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Payment\Model\Checks
;
7
8
use
Magento\Payment\Model\MethodInterface
;
9
use
Magento\Quote\Model\Quote
;
10
17
class
ZeroTotal
implements
SpecificationInterface
18
{
27
public
function
isApplicable
(
MethodInterface
$paymentMethod,
Quote
$quote
)
28
{
29
return
!(
$quote
->getBaseGrandTotal() < 0.0001 && $paymentMethod->
getCode
() !=
'free'
);
30
}
31
}
$quote
$quote
Definition:
paypal_quote.php:17
Magento\Payment\Model\MethodInterface\getCode
getCode()
Magento\Payment\Model\Checks\SpecificationInterface
Definition:
SpecificationInterface.php:17
Magento\Payment\Model\Checks
Definition:
CanUseCheckout.php:6
Magento\Payment\Model\MethodInterface
Definition:
MethodInterface.php:16
Magento\Quote\Model\Quote
Definition:
Quote.php:107
Magento\Quote\Model\Quote
Definition:
AddressTest.php:6
Magento\Payment\Model\Checks\ZeroTotal\isApplicable
isApplicable(MethodInterface $paymentMethod, Quote $quote)
Definition:
ZeroTotal.php:27
Magento\Payment\Model\Checks\ZeroTotal
Definition:
ZeroTotal.php:17