Model
PaymentAdapter
Magento\Sales\Model\Order\PaymentAdapter
What it does
This adapter class simplifies the payment processing workflow for orders and invoices in Magento 2.
Developers use this class when they need to execute payment operations on an order with an associated invoice, whether capturing payment immediately or authorizing it for later capture.
It acts as a simplified interface that delegates the actual payment execution to the PayOperation class.
Public Methods
- pay()