PaypalExpressToken
Magento\PaypalGraphQl\Model\Resolver\PaypalExpressToken
What it does
This resolver generates a PayPal Express Checkout token for a shopping cart in GraphQL requests.
Developers use this class when implementing PayPal payment integration in headless or PWA storefronts, allowing customers to initiate PayPal checkout flows.
It handles cart validation, customer authentication, and returns the token along with PayPal redirect URLs needed to complete the payment.
Public Methods
- resolve()