checkoutSession = $checkoutSession; } /** * @param \Amazon\Payment\Model\Method\AmazonLoginMethod $subject * @param $result * @return bool */ public function afterIsAvailable( \Amazon\Payment\Model\Method\AmazonLoginMethod $subject, $result ) { /** @var \Magento\Quote\Model\Quote $quote */ $quote = $this->checkoutSession->getQuote(); if ($quote->isVirtual()) { return false; } return $result; // return default result } }