Interface
MethodInterface
Magento\Payment\Model\MethodInterface
What it does
This interface defines the contract that all payment methods in Magento 2 must implement.
Developers use it when creating custom payment methods or integrating third-party payment gateways, ensuring they provide all required functionality like authorization, capture, refund, and validation.
It standardizes how payment methods interact with Magento's checkout and order processing system.
Public Methods
- getCode()
- getFormBlockType()
- getTitle()
- setStore()
- getStore()
- canOrder()
- canAuthorize()
- canCapture()
- canCapturePartial()
- canCaptureOnce()
- canRefund()
- canRefundPartialPerInvoice()
- canVoid()
- canUseInternal()
- canUseCheckout()
- canEdit()
- canFetchTransactionInfo()
- fetchTransactionInfo()
- isGateway()
- isOffline()
- isInitializeNeeded()
- canUseForCountry()
- canUseForCurrency()
- getInfoBlockType()
- getInfoInstance()
- setInfoInstance()
- validate()
- order()
- authorize()
- capture()
- refund()
- cancel()
- void()
- canReviewPayment()
- acceptPayment()
- denyPayment()
- getConfigData()
- assignData()
- isAvailable()
- isActive()
- initialize()
- getConfigPaymentAction()