Log in
Model

GuestCouponManagement

Magento\Quote\Model\GuestCart\GuestCouponManagement

What it does

This class manages coupon codes for guest shopping carts in Magento 2.

It acts as a wrapper that converts masked cart IDs (used for guest carts) to internal quote IDs, then delegates coupon operations to the core coupon management service.

Developers use this when building guest checkout flows or APIs that need to apply, retrieve, or remove discount coupons without requiring customer authentication.

Public Methods

  • get()
  • set()
  • remove()