Ejemplo n.º 1
0
 /**
  * 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());
 }
Ejemplo n.º 2
0
 /**
  * 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));
 }