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 serves as a wrapper that converts masked cart IDs (used for guest sessions) into internal quote IDs before delegating to the standard payment method management.

Developers use this when implementing guest checkout flows to set, retrieve, or list available payment methods without requiring customer authentication.

Public Methods

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