/** * Set capture transaction ID to invoice for informational purposes * @param Mage_Sales_Model_Order_Invoice $invoice * @param Mage_Sales_Model_Order_Payment $payment * @return Mage_Payment_Model_Method_Abstract */ public function processInvoice($invoice, $payment) { return Mage_Payment_Model_Method_Abstract::processInvoice($invoice, $payment); }
public function processInvoice($invoice, $payment) { parent::processInvoice($invoice, $payment); // Make sure the order is in the desired state $transaction = $this->getHelper()->loadTransactionByPayment($payment->getId()); $order = $payment->getOrder(); $this->setOrderStatus($order, $transaction->getTransactionObject()->getOrderStatus()); }
public function processInvoice($invoice, $payment) { parent::processInvoice($invoice, $payment); $invoice->addComment(Mage::helper('amazonpayments')->__('Invoice was created with Checkout by Amazon.')); return $this; }
/** * Set invoice transaction id * * @param Mage_Sales_Model_Order_Invoice $invoice * @param type $payment */ public function processInvoice($invoice, $payment) { parent::processInvoice($invoice, $payment); $invoice->setTransactionId($payment->getAdditionalInformation('paymillTransactionId')); }