Exemple #1
0
 /**
  * Convert quote payment to order payment
  *
  * @param   Mage_Sales_Model_Quote_Payment $payment
  * @return  Mage_Sales_Model_Quote_Payment
  */
 public function paymentToOrderPayment(Mage_Sales_Model_Quote_Payment $payment)
 {
     $orderPayment = Mage::getModel('sales/order_payment')->setStoreId($payment->getStoreId())->setCustomerPaymentId($payment->getCustomerPaymentId())->setMethod($payment->getMethod())->setAdditionalData($payment->getAdditionalData())->setPoNumber($payment->getPoNumber())->setCcType($payment->getCcType())->setCcNumberEnc($payment->getCcNumberEnc())->setCcLast4($payment->getCcLast4())->setCcOwner($payment->getCcOwner())->setCcCidEnc($payment->getCcCidEnc())->setCcExpMonth($payment->getCcExpMonth())->setCcExpYear($payment->getCcExpYear());
     return $orderPayment;
 }