nerdexam
Magento

M70-201 · Question #21

Which of the following lines includes a payment method object?

The correct answer is C. $method = $this->getMethodlnstance(); inside Mage_Sales_Model_Quote_Payment. See the full explanation below for the reasoning.

Question

Which of the following lines includes a payment method object?

Options

  • A$quote->getShippingAddress()->setPaymentMethod(isset($data['method']) ? $data['method'] :
  • B.public function setPayment(Mage_Sales_Model_Quote_Payment $payment) inside
  • C$method = $this->getMethodlnstance(); inside Mage_Sales_Model_Quote_Payment
  • D$instance->set!nfoInstance($this); inside Mage_Payment_Model_Info

How the community answered

(53 responses)
  • A
    17% (9)
  • B
    6% (3)
  • C
    74% (39)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full M70-201 Practice