示例#1
0
 /**
  * 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);
 }