Log in
Model

CanUseForCountry

Magento\Payment\Model\Checks\CanUseForCountry

What it does

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

It checks the quote's billing/shipping country against the payment method's allowed countries configuration, preventing customers from selecting payment methods that aren't available in their region.

Public Methods

  • isApplicable()