/** * Check and prepare payment method model * * Redeclare this method in child classes for declaring method info instance * * @param \Magento\Payment\Model\MethodInterface $method * @return $this */ protected function _assignMethod($method) { $method->setInfoInstance($this->getQuote()->getPayment()); return $this; }