Example #1
0
 /**
  * Check payment method model
  *
  * @param \Magento\Payment\Model\Method\AbstractMethod|null $method
  * @return bool
  */
 protected function _canUseMethod($method)
 {
     return $method && $this->paymentSpecification->isSatisfiedBy($method->getCode()) && parent::_canUseMethod($method);
 }