Пример #1
0
        public static string sampleCreditSale()
        {
            request.Credit.Sale sale = SampleRequests.sampleCreditSale();
            string response          = sale.send();

            return(response);
        }
Пример #2
0
        public static string sampleCreditCredit()
        {
            request.Credit.Sale sale = SampleRequests.sampleCreditSale();
            string response          = sale.send();
            string transactionID     = Utilities.getTransactionID(response);

            if (transactionID != null)
            {
                request.Credit.Credit credit = SampleRequests.sampleCreditCredit(transactionID);
                response = credit.send();
                return(response);
            }
            System.Console.WriteLine("Sale failed. Cannot perform Credit transaction");
            return(null);
        }