Log in
Model

CanUseCheckout

Magento\Payment\Model\Checks\CanUseCheckout

What it does

This class validates whether a payment method can be used during the checkout process in the storefront.

Developers use this as part of Magento's payment method specification pattern to filter out payment methods that are disabled for checkout, ensuring only applicable payment options are shown to customers during the checkout flow.

Public Methods

  • isApplicable()