Log in
Model

PaymentDetails

Magento\Checkout\Model\PaymentDetails

What it does

This class serves as a data container for payment-related information during the checkout process.

Developers use it to retrieve and manage available payment methods and cart totals, typically when displaying payment options to customers or processing checkout API requests.

It implements the PaymentDetailsInterface, making it part of Magento's service contract for checkout operations.

Public Methods

  • getPaymentMethods()
  • setPaymentMethods()
  • getTotals()
  • setTotals()
  • getExtensionAttributes()
  • setExtensionAttributes()