Log in
Model

RefundAdapter

Magento\Sales\Model\Order\RefundAdapter

What it does

The RefundAdapter class serves as a facade for processing refunds in Magento 2.

Developers use this class when they need to issue a refund for an order through a credit memo, whether it's an online refund (processed through the payment gateway) or offline refund.

It delegates the actual refund logic to the RefundOperation class, providing a clean interface for refund operations.

Public Methods

  • refund()