SetPaymentMethodOnCart
Magento\QuoteGraphQl\Model\Resolver\SetPaymentMethodOnCart
What it does
This GraphQL mutation resolver handles setting a payment method on a shopping cart.
Developers use this class when implementing GraphQL checkout flows where customers need to select and apply payment methods (like credit card, PayPal, etc.) to their cart before placing an order.
It validates the cart exists, checks checkout permissions, and delegates the actual payment method assignment to the model layer.
Public Methods
- resolve()