Log in
Interface

ValidatorInterface

Magento\Paypal\Helper\Shortcut\ValidatorInterface

What it does

This interface defines a contract for validating PayPal shortcut buttons before they are displayed.

Developers implement this interface to create validators that determine whether a specific PayPal payment shortcut should be shown based on the payment method code and whether it's being displayed in the catalog or checkout context.

Public Methods

  • validate()