Model
ToOrderPayment
Magento\Quote\Model\Quote\Payment\ToOrderPayment
What it does
This class converts Quote Payment data into Order Payment data during the checkout process when a quote is being transformed into an order.
Developers use this converter when they need to transfer payment information from a shopping cart (quote) to a completed order, ensuring all payment details, including sensitive credit card data and additional information, are properly migrated.
Public Methods
- convert()