Log in
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 cart, retrieve the current payment method, or get a list of all available payment methods for a specific cart.

It handles validation like checking if shipping addresses are set and whether payment methods are applicable based on order totals and other constraints.

Public Methods

  • set()
  • get()
  • getList()