Log in
Interface

RefundInvoiceInterface

Magento\Sales\Model\Order\Validation\RefundInvoiceInterface

What it does

This interface defines the contract for validating refund operations on invoices in Magento 2.

Developers implement this interface to create validation logic that checks whether a credit memo (refund) can be created for a specific invoice, considering factors like refund items, online/offline processing, and notification settings.

It's used during the refund process to ensure all business rules are met before processing the credit memo.

Public Methods

  • validate()