Log in
Model

AddProductsToNewCart

Magento\PaymentServicesPaypalGraphQl\Model\Resolver\AddProductsToNewCart

What it does

This GraphQL resolver creates a new shopping cart and immediately adds products to it in a single operation.

Developers use this for PayPal payment flows where products need to be added to a fresh cart (often called a 'shadow quote') without affecting the customer's existing cart, particularly useful for buy-now scenarios from product detail pages.

Public Methods

  • resolve()