Interface
PaymentDetailsInterface
Magento\Checkout\Api\Data\PaymentDetailsInterface
What it does
This interface defines a data contract for payment details during the checkout process in Magento 2.
Developers use it to retrieve available payment methods and order totals, typically when building checkout APIs or customizing the payment step.
It's commonly used in REST/SOAP API responses to provide clients with all necessary payment information in a structured format.
Public Methods
- getPaymentMethods()
- setPaymentMethods()
- getTotals()
- setTotals()
- getExtensionAttributes()
- setExtensionAttributes()