Example #1
0
        public static string sampleCheckSale()
        {
            request.Check.Sale sale     = SampleRequests.sampleCheckSale();
            string             response = sale.send();

            return(response);
        }
Example #2
0
        public static string sampleCheckVoid()
        {
            request.Check.Sale sale          = SampleRequests.sampleCheckSale();
            string             response      = sale.send();
            string             transactionID = Utilities.getTransactionID(response);

            if (transactionID != null)
            {
                request.Check.Void void_ = SampleRequests.sampleCheckVoid(transactionID);
                response = void_.send();
                return(response);
            }
            System.Console.WriteLine("Sale failed. Cannot perform Void transaction");
            return(null);
        }