MethodList
Magento\Payment\Model\MethodList
What it does
The MethodList class retrieves and filters all available payment methods for a given shopping cart quote in Magento 2.
Developers use this class when they need to display payment options during checkout or programmatically determine which payment methods are valid based on factors like country, currency, order total, and other custom business rules.
It validates each payment method against multiple checks before returning the final list of available methods.
Public Methods
- getAvailableMethods()