Log in
Interface

GuestTotalsInformationManagementInterface

Magento\Checkout\Api\GuestTotalsInformationManagementInterface

What it does

This interface defines the contract for calculating shopping cart totals for guest customers (non-logged-in users) in Magento 2.

Developers use this when they need to recalculate order totals after a guest customer changes their shipping address or shipping method during checkout.

It takes the cart ID and address information, then returns updated totals including taxes, shipping costs, and discounts.

Public Methods

  • calculate()