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 retrieving or displaying available payment methods during checkout, ensuring consistent access to payment method code and title across the application.

It's primarily used by checkout processes, payment method renderers, and API endpoints that need to expose payment method information.

Public Methods

  • getCode()
  • getTitle()