Log in
Interface

GuestPaymentMethodManagementInterface

Magento\Quote\Api\GuestPaymentMethodManagementInterface

What it does

This interface defines the contract for managing payment methods in guest shopping carts (non-logged-in customers).

Developers use this to set a payment method on a guest cart, retrieve the current payment method, or get a list of all available payment methods for checkout.

It's essential for implementing guest checkout flows and payment integrations in Magento 2.

Public Methods

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