Log in
Interface

PaymentMethodInterface

Magento\Payment\Api\Data\PaymentMethodInterface

What it does

This interface defines the contract for payment method data objects in Magento 2.

Developers use this interface when working with payment method information to retrieve basic details like the payment code, title, store association, and active status.

It's commonly used in payment processing, checkout customizations, and when displaying available payment options to customers.

Public Methods

  • getCode()
  • getTitle()
  • getStoreId()
  • getIsActive()