Model
SetPaymentMethodOnCart
Magento\QuoteGraphQl\Model\Cart\SetPaymentMethodOnCart
What it does
This class handles setting the payment method on a shopping cart in Magento 2's GraphQL API.
Developers use it when processing GraphQL mutations to save payment information (like credit card or PayPal) to a quote before order placement.
It includes rate limiting to prevent abuse and converts standard exceptions to GraphQL-specific exceptions.
Public Methods
- execute()