Ejemplo n.º 1
0
        private void AddOrderAddress(Cart cart, PaymentInformation payment, InitializeResult initializeResult)
        {
            Log.InfoFormat("Calling AddOrderAddress for cart with ID:{0}. PaymentInformation:{1}. InitializeResult:{2}", cart.Id, payment, initializeResult);

            PayExAddress address   = CartHelper.OrderAddress(cart, payment, initializeResult);
            string       hash      = _hasher.Create(_payExSettings.AccountNumber, address, _payExSettings.EncryptionKey);
            string       xmlResult = _orderFacade.AddOrderAddress(_payExSettings.AccountNumber, address, hash);

            Log.InfoFormat("Finished calling AddOrderAddress for cart with ID:{0}. PaymentInformation:{1}. InitializeResult:{2}. Result:{3}",
                           cart.Id, payment, initializeResult, xmlResult);
        }