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's API layer.

Developers use this interface when retrieving payment method information through web APIs or service contracts, ensuring consistent access to properties like payment code, title, store ID, and active status across different payment implementations.

Public Methods

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