Log in
Model

GuestPaymentMethodManagement

Magento\Quote\Model\GuestCart\GuestPaymentMethodManagement

What it does

This class manages payment methods for guest shopping carts in Magento 2.

It acts as a proxy that converts masked cart IDs (used by guests) into actual quote IDs, then delegates payment method operations (set, get, getList) to the standard PaymentMethodManagement service.

Developers use this when building checkout flows or APIs that need to handle payment methods for non-logged-in customers.

Public Methods

  • set()
  • get()
  • getList()