Log in
Factory

Shortcut\Factory

Magento\Paypal\Helper\Shortcut\Factory

What it does

This factory class creates the appropriate PayPal shortcut validator based on context.

When a checkout session is passed, it creates a checkout-specific validator; otherwise, it creates the default validator.

Developers use this to get the correct validator instance for validating PayPal shortcut button availability in different scenarios.

Public Methods

  • create()