Log in
Model

Free

Magento\Payment\Model\Method\Free

What it does

This class implements the Free payment method in Magento 2, which is automatically used when an order's grand total is zero (e.g., fully discounted orders or free products).

Developers would use this when they need to customize how free orders are processed or when extending functionality for zero-price checkout scenarios.

The method is only available when the quote's grand total rounds to zero.

Public Methods

  • isAvailable()
  • isAvailableInConfig()
  • getConfigPaymentAction()