PaymentMethod
Magento\Payment\Model\PaymentMethod
What it does
This class represents a payment method data object in Magento 2, storing essential information like the payment method code, title, store ID, and active status.
Developers use this class to retrieve payment method details when displaying available payment options to customers or when working with payment configurations across different stores.
It implements the PaymentMethodInterface and serves as a simple data container for payment method information.
Public Methods
- getCode()
- getTitle()
- getStoreId()
- getIsActive()