Log in
Model

ZeroTotal

Magento\Payment\Model\Checks\ZeroTotal

What it does

This class validates whether a payment method can be used when a quote has a zero or near-zero total.

It prevents regular payment methods from being used on free orders by ensuring only the 'free' payment method is applicable when the order total is effectively zero (less than 0.0001).

Developers use this as part of Magento's payment method specification chain to filter available payment options at checkout.

Public Methods

  • isApplicable()