Esempio n. 1
0
 /**
  * Set refund transaction id to payment object for informational purposes
  * Candidate to be deprecated:
  * there can be multiple refunds per payment, thus payment.refund_transaction_id doesn't make big sense
  *
  * @param Mage_Sales_Model_Order_Invoice $invoice
  * @param Mage_Sales_Model_Order_Payment $payment
  * @return Mage_Payment_Model_Method_Abstract
  */
 public function processBeforeRefund($invoice, $payment)
 {
     $payment->setRefundTransactionId($invoice->getTransactionId());
     return $this;
 }