Log in
Model

PaymentAdapter

Magento\Sales\Model\Order\PaymentAdapter

What it does

This adapter class handles payment processing for order invoices in Magento 2.

Developers use this class when they need to execute payment operations on an invoice, such as capturing payment or authorizing transactions.

It serves as a simplified interface that delegates the actual payment logic to the PayOperation class.

Public Methods

  • pay()