Log in
Repository

GuestCartRepositoryInterface

Magento\Quote\Api\GuestCartRepositoryInterface

What it does

This interface defines the contract for retrieving shopping cart information for guest (non-logged-in) users in Magento 2.

Developers use this when they need to fetch cart data for guests using a masked cart ID, typically in checkout flows, cart APIs, or frontend cart display operations.

It ensures guest carts can be accessed securely without requiring customer authentication.

Public Methods

  • get()