Log in
Interface

TotalsInformationManagementInterface

Magento\Checkout\Api\TotalsInformationManagementInterface

What it does

This interface defines a contract for calculating shopping cart totals in Magento 2 checkout.

Developers use this to recalculate cart totals when address information or shipping methods change during checkout, ensuring accurate pricing including taxes, discounts, and shipping costs.

It's commonly used in checkout flows to update the order summary dynamically as customers provide their shipping details.

Public Methods

  • calculate()