Log in
Interface

PaymentMethodInterface

Magento\Quote\Api\Data\PaymentMethodInterface

What it does

This interface defines the contract for payment method data objects in Magento 2's quote system.

Developers use this interface when working with available payment methods during checkout, allowing them to retrieve the payment method's unique code and display title.

It's commonly used in checkout processes, payment method listings, and when displaying payment options to customers.

Public Methods

  • getCode()
  • getTitle()