Example #1
0
        public static string sampleCreditAuthorization()
        {
            request.Credit.Authorization authorization = SampleRequests.sampleCreditAuthorization();
            string response = authorization.send();

            return(response);
        }
Example #2
0
        public static string sampleCreditAuthorizationCompletion()
        {
            request.Credit.Authorization authorization = SampleRequests.sampleCreditAuthorization();
            string response      = authorization.send();
            string transactionID = Utilities.getTransactionID(response);

            if (transactionID != null)
            {
                request.Credit.AuthorizationCompletion authorizationCompletion = SampleRequests.sampleCreditAuthorizationCompletion(transactionID);
                response = authorizationCompletion.send();
                return(response);
            }
            System.Console.WriteLine("Authorization failed. Cannot perform Authorization Completion transaction");
            return(null);
        }