public static string sampleCreditAuthorization() { request.Credit.Authorization authorization = SampleRequests.sampleCreditAuthorization(); string response = authorization.send(); return(response); }
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); }