Log in
Interface

RefundInvoiceInterface

Magento\Sales\Model\Order\Validation\RefundInvoiceInterface

What it does

This interface defines a contract for validating credit memo refunds against invoices in Magento 2.

Developers implement this interface to create custom validation logic that checks whether a refund can be processed for a given invoice, order, and credit memo combination.

It's used during the refund process to ensure all business rules and conditions are met before allowing the credit memo creation.

Public Methods

  • validate()