/** * Check whether payment method is applicable to quote * @param MethodInterface $paymentMethod * @param Quote $quote * @return bool */ public function isApplicable(MethodInterface $paymentMethod, Quote $quote) { return $paymentMethod->canUseForCountry($quote->getBillingAddress()->getCountry()); }
/** * Check whether payment method is applicable to quote * @param MethodInterface $paymentMethod * @param Quote $quote * @return bool */ public function isApplicable(MethodInterface $paymentMethod, Quote $quote) { return $paymentMethod->canUseForCountry($this->countryProvider->getCountry($quote)); }