public ActionResult VoidTransaction(string referenceNumber)
        {
            try
            {
                if (string.IsNullOrEmpty(referenceNumber))
                {
                    return(HttpNotFound("Reference NUmber should not be empty"));
                }

                using (var webService = new TransactionProcessingService.TransactionProcessingSoapClient())
                {
                    var result       = webService.TestConnection();
                    var credResponse =
                        webService.TestCredentials(storeId, storeKey, entityID, locationId, terminalNumber);


                    //it will removed fromm transaction pproceessing
                    var voidTransactionresponse = webService.VoidTransaction(storeId, storeKey, entityID, Convert.ToInt32(locationId), referenceNumber);

                    @ViewBag.Message = voidTransactionresponse.ResponseCode;
                }

                return(View());
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                throw;
            }
        }
        public JsonResult MakePayment(MakePayment makePayment)
        {
            try
            {
                using (var webService = new TransactionProcessingService.TransactionProcessingSoapClient())
                {
                    var result       = webService.TestConnection();
                    var credResponse =
                        webService.TestCredentials(storeId, storeKey, entityID, locationId, terminalNumber);

                    WSTransaction transactionRequest = new WSTransaction()
                    {
                        EntityId          = entityID,
                        LocationId        = Convert.ToInt32(locationId),
                        PaymentOrigin     = TransactionProcessingService.WSPaymentOrigin.Internet,
                        AccountType       = TransactionProcessingService.WSAccountType.Checking,
                        OperationType     = TransactionProcessingService.WSOperationType.Sale,
                        SettlementType    = TransactionProcessingService.WSSettlementType.ACH,
                        EffectiveDate     = DateTime.Now,
                        Description       = makePayment.Description,
                        TotalAmount       = makePayment.TotalAmount,
                        TransactionNumber = makePayment.TransactionNumber,                        // "TestImage75",
                        Field1            = "",
                        Field2            = "",
                        Field3            = "",
                        //CheckMICRLine = "",
                        //CheckMICRSymbolSet = "toad ?",
                        RoutingNumber               = makePayment.RoutingNumber,
                        AccountNumber               = makePayment.AccountNumber,
                        CheckNumber                 = "1362",
                        IsBusinessPayment           = makePayment.IsBusinessPayment,
                        NameOnAccount               = makePayment.NameOnAccount,
                        CheckFrontImageBytes_TiffG4 = null,
                        CheckRearImageBytes_TiffG4  = null,
                        PresentmentNumber           = 0
                    };

                    var authTranResponse = webService.AuthorizeTransaction(storeId, storeKey, transactionRequest, WSOwnerApplication.Web_Service);

                    return(Json(authTranResponse));
                }
            }
            catch (Exception e)
            {
                throw e;
            }
        }