Interface
RefundAdapterInterface
Magento\Sales\Model\Order\RefundAdapterInterface
What it does
This interface defines a contract for processing refunds in Magento 2.
Developers implement this interface to create custom refund adapters that handle the refund logic when a credit memo is issued, whether online (through payment gateway) or offline.
It serves as an extension point allowing merchants to customize refund behavior without modifying core code.
Public Methods
- refund()