Log in
Model

CreditmemoService

Magento\Sales\Model\Service\CreditmemoService

What it does

The CreditmemoService class manages credit memo operations in Magento 2, including processing refunds, retrieving comment lists, and sending customer notifications.

Developers use this service when they need to programmatically handle credit memos, such as issuing refunds through custom modules or integrations.

It provides the core business logic for validating refund amounts, updating order states, and coordinating with payment gateways.

Public Methods

  • cancel()
  • getCommentsList()
  • notify()
  • refund()