Log in
Model

PaymentMethod

Magento\Payment\Model\PaymentMethod

What it does

This class represents a payment method entity in Magento 2, providing a data transfer object (DTO) for payment method information.

Developers use this class to retrieve payment method details like code, title, store ID, and active status when working with the Payment API or displaying available payment options to customers.

Public Methods

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