CartTotalManagementInterface
Magento\Quote\Api\CartTotalManagementInterface
What it does
This interface defines a service contract for collecting and calculating cart totals in Magento 2.
Developers use this when they need to recalculate a shopping cart's totals after setting or updating payment methods, shipping methods, or other additional data that affects the cart's final amounts.
It's particularly useful during checkout processes or when integrating custom payment/shipping solutions that require total recalculation.
Public Methods
- collectTotals()