public LegalAddressResult GetAddressByPaymentMethod(string paymentMethod, string ssn, string zipcode, string countryCode, string ipAddress) { Log.InfoFormat("Calling GetAddressByPaymentMethod for paymentMethod:{0}.", paymentMethod); string hash = _hasher.Create(_payExSettings.AccountNumber, paymentMethod, ssn, zipcode, countryCode, ipAddress, _payExSettings.EncryptionKey); string xmlResult = _orderFacade.GetAddressByPaymentMethod(_payExSettings.AccountNumber, paymentMethod, ssn, zipcode, countryCode, ipAddress, hash); LegalAddressResult result = _resultParser.Deserialize <LegalAddressResult>(xmlResult); if (result.Status.Success) { Log.InfoFormat("Successfully called GetAddressByPaymentMethod for paymentMethod:{0}. Result:{1}", paymentMethod, xmlResult); } else { Log.ErrorFormat("Error when calling GetApprovedDeliveryAddress for paymentMethod:{0}. Result:{1}", paymentMethod, xmlResult); } return(result); }