Log in
Model

PayOperation

Magento\Sales\Model\Order\Invoice\PayOperation

What it does

This class handles the payment processing logic when an invoice is created for an order.

It manages payment capture, updates invoice and order totals, registers invoice items, and dispatches events.

Developers would use this class when implementing custom invoice creation workflows or extending invoice payment functionality.

Public Methods

  • execute()