Model
Adapter
Magento\Payment\Model\Method\Adapter
What it does
This class serves as a universal adapter for payment methods in Magento 2, providing a standardized interface to execute payment operations like authorize, capture, refund, and void.
Developers use this as a base for creating custom payment method integrations by configuring command pools, validators, and value handlers without reimplementing the core payment logic.
Public Methods
- getValidatorPool()
- canOrder()
- canAuthorize()
- canCapture()
- canCapturePartial()
- canCaptureOnce()
- canRefund()
- canRefundPartialPerInvoice()
- canVoid()
- canUseInternal()
- canUseCheckout()
- canEdit()
- canFetchTransactionInfo()
- canReviewPayment()
- isGateway()
- isOffline()
- isInitializeNeeded()
- isAvailable()
- isActive()
- canUseForCountry()
- canUseForCurrency()
- getConfigData()
- validate()
- fetchTransactionInfo()
- order()
- authorize()
- capture()
- refund()
- cancel()
- void()
- acceptPayment()
- denyPayment()
- getCode()
- getTitle()
- setStore()
- getStore()
- getFormBlockType()
- getInfoBlockType()
- getInfoInstance()
- setInfoInstance()
- assignData()
- initialize()
- getConfigPaymentAction()
- canSale()
- sale()