RefundOrderInterface
Magento\Sales\Api\RefundOrderInterface
What it does
This interface defines the contract for creating offline refunds (credit memos) for orders in Magento 2.
Developers use this when they need to programmatically refund an order without processing the refund through the payment gateway, such as when issuing store credit or handling manual refund scenarios.
The execute method accepts order ID, items to refund, notification preferences, and optional comments.
Public Methods
- execute()