/** * 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); }