public CreditResult CreditOrderLine(int transactionNumber, string itemNumber, string orderId) { Log.InfoFormat("Calling CreditOrderLine for TransactionNumber:{0}. ItemNumber:{1}. OrderId:{2}.", transactionNumber, itemNumber, orderId); string hash = _hasher.Create(_payExSettings.AccountNumber, transactionNumber, itemNumber, orderId, _payExSettings.EncryptionKey); string xmlResult = _orderFacade.CreditOrderLine(_payExSettings.AccountNumber, transactionNumber, itemNumber, orderId, hash); CreditResult result = _resultParser.Deserialize <CreditResult>(xmlResult); if (result.Success) { Log.InfoFormat("Successfully called CreditOrderLine for TransactionNumber:{0}. ItemNumber:{1}. OrderId:{2}.", transactionNumber, itemNumber, orderId); } else { Log.ErrorFormat("Error when calling CreditOrderLine for TransactionNumber:{0}. ItemNumber:{1}. OrderId:{2}.", transactionNumber, itemNumber, orderId); } return(result); }