Model
Free
Magento\Payment\Model\Method\Free
What it does
This class implements the 'Free' payment method in Magento 2, which is used when an order total is zero (e.g., using discount codes, store credit, or free products).
Developers would use this class to handle checkout flows for orders that don't require actual payment processing, and can extend it to customize behavior for zero-cost transactions.
Public Methods
- isAvailable()
- isAvailableInConfig()
- getConfigPaymentAction()