Model
AbstractMethod
Magento\Payment\Model\Method\AbstractMethod
What it does
This abstract class serves as the base implementation for all payment methods in Magento 2.
Developers extend this class when creating custom payment methods, implementing operations like authorize, capture, refund, and void.
It provides configuration management, validation, and defines the capabilities of payment methods (e.g., whether they support partial capture or refunds).
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()