Log in
Interface

PaymentMethodManagementInterface

Magento\Quote\Api\PaymentMethodManagementInterface

What it does

This interface defines the contract for managing payment methods in shopping carts.

Developers use it to set a payment method for a cart, retrieve the current payment method, or get a list of all available payment methods for a specific cart.

It's essential when building checkout flows or integrating custom payment solutions in Magento 2.

Public Methods

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