AbstractMethod
Magento\Payment\Model\Method\AbstractMethod
What it does
This abstract class serves as the foundation for all payment method implementations in Magento 2.
Developers extend this class when creating custom payment methods to handle operations like authorization, capture, refund, and void transactions.
It provides a standardized interface for payment methods to interact with Magento's order and checkout systems, including configuration management, validation, and debugging capabilities.
Public Methods
- setStore()
- getStore()
- canOrder()
- canAuthorize()
- canCapture()
- canCapturePartial()
- canCaptureOnce()
- canRefund()
- canRefundPartialPerInvoice()
- canVoid()
- canUseInternal()
- canUseCheckout()
- canEdit()
- canFetchTransactionInfo()
- fetchTransactionInfo()
- isGateway()
- isOffline()
- isInitializeNeeded()
- canUseForCountry()
- canUseForCurrency()
- getCode()
- getFormBlockType()
- getInfoBlockType()
- getInfoInstance()
- setInfoInstance()
- validate()
- order()
- authorize()
- capture()
- refund()
- cancel()
- void()
- canReviewPayment()
- acceptPayment()
- denyPayment()
- getTitle()
- getConfigData()
- assignData()
- isAvailable()
- isActive()
- initialize()
- getConfigPaymentAction()
- getDebugFlag()
- debugData()
- getDebugReplacePrivateDataKeys()