Log in
Model

CanUseForCountry

Magento\Payment\Model\Checks\CanUseForCountry

What it does

This class validates whether a payment method can be used for a specific country during checkout.

It implements a specification pattern check that determines if a payment method is available based on the billing/shipping country of the current quote.

Developers use this as part of Magento's payment method availability validation chain to ensure only country-appropriate payment methods are displayed to customers.

Public Methods

  • isApplicable()