Log in
Model

PaymentMethodBuilder

Magento\QuoteGraphQl\Model\Cart\Payment\PaymentMethodBuilder

What it does

This class builds PaymentInterface objects for GraphQL cart operations in Magento 2.

Developers use it when processing payment method data submitted through GraphQL mutations, as it validates required payment fields, retrieves additional payment-specific data from providers, and constructs the standardized payment object needed for quote operations.

Public Methods

  • build()