Model
PaymentMethodManagement
Magento\Quote\Model\PaymentMethodManagement
What it does
This class manages payment methods for shopping carts (quotes) in Magento 2.
Developers use it to set a payment method on a quote, retrieve the current payment method, or get a list of all available payment methods for a specific cart.
It validates payment methods against cart requirements like country, currency, and total amount before applying them.
Public Methods
- set()
- get()
- getList()