/**
  * Copy important data from the initial transaction to the new transaction.
  * 
  * @param Customweb_Saferpay_Authorization_Transaction $initialTransaction
  * @param Customweb_Saferpay_Authorization_Transaction $recurringTransaction
  */
 protected function useInitialTransactionData(Customweb_Saferpay_Authorization_Transaction $initialTransaction, Customweb_Saferpay_Authorization_Transaction $recurringTransaction)
 {
     $recurringTransaction->setCardRefId($initialTransaction->getCardRefId());
     $recurringTransaction->setCardExpiryDate($initialTransaction->getCardExpiryMonth(), $initialTransaction->getCardExpiryYear());
     $recurringTransaction->setOwnerName($initialTransaction->getOwnerName());
     $recurringTransaction->setTruncatedPAN($initialTransaction->getTruncatedPAN());
     $recurringTransaction->setMpiSessionId(null);
 }
 /**
  * Stores the alias with a hash of the shipping address the alias was created with.
  * This is used for fraud prevention as an alias can only be resused without
  * entering the cvc when the shipping address did not change.
  *
  * @param Customweb_Saferpay_Authorization_Transaction $transaction
  */
 protected function setAliasAddress(Customweb_Saferpay_Authorization_Transaction $transaction)
 {
     $cardrefId = $transaction->getCardRefId();
     $orderContext = $transaction->getTransactionContext()->getOrderContext();
     $aliasContext = array($cardrefId => $this->getShippingAddressHash($orderContext));
     $transaction->getPaymentCustomerContext()->updateMap($aliasContext);
 }