public void giftCard_voice_capture() { Transaction trans = Transaction.FromNetwork( 10m, "TYPE04", NtsData.VoiceAuthorized(), giftCard ); Transaction response = trans.Capture() .WithReferenceNumber("12345") .Execute(); Assert.IsNotNull(response); System.Diagnostics.Debug.WriteLine(response.HostResponseDate); System.Diagnostics.Debug.WriteLine(response.SystemTraceAuditNumber); Assert.AreEqual("000", response.ResponseCode); }
public static Transaction FromNetwork(decimal?amount, string authCode, NtsData originalNtsCode, IPaymentMethod originalPaymentMethod, string messageTypeIndicator = null, string stan = null, string originalTransactionTime = null, string originalProcessingCode = null, string acquirerId = null) { TransactionReference reference = new TransactionReference(); reference.OriginalAmount = amount; reference.AcquiringInstitutionId = acquirerId; reference.AuthCode = authCode; reference.MessageTypeIndicator = messageTypeIndicator; reference.NtsData = originalNtsCode; reference.OriginalPaymentMethod = originalPaymentMethod; reference.OriginalTransactionTime = originalTransactionTime; reference.SystemTraceAuditNumber = stan; reference.OriginalProcessingCode = originalProcessingCode; Transaction trans = new Transaction(); trans.TransactionReference = reference; return(trans); }
public void SetNtsData(string value) { this.NtsData = NtsData.FromString(value); }