Log in
Helper

CheckoutValidator

Magento\Paypal\Helper\Shortcut\CheckoutValidator

What it does

This helper validates whether PayPal shortcut buttons (like Express Checkout) should be displayed on the storefront.

Developers use this class to check if the payment method is available, the quote meets minimum requirements, and the context (catalog vs checkout) is appropriate before rendering PayPal shortcuts.

Public Methods

  • validate()
  • isMethodQuoteAvailable()
  • isQuoteSummaryValid()