public void ReadyLinkLoad() { track = new DebitTrackData { Value = ";4110651122223331=21121010000012345678?" }; Transaction response = track.AddValue(50m) .WithCurrency("USD") .Execute(); Assert.IsNotNull(response); // check message data PriorMessageInformation pmi = response.MessageInformation; Assert.IsNotNull(pmi); Assert.AreEqual("1200", pmi.MessageTransactionIndicator); Assert.AreEqual("600008", pmi.ProcessingCode); Assert.AreEqual("200", pmi.FunctionCode); // check response Assert.AreEqual("000", response.ResponseCode); System.Diagnostics.Debug.WriteLine(response.HostResponseDate); System.Diagnostics.Debug.WriteLine(response.SystemTraceAuditNumber); }
public void DebitAddValue() { var response = track.AddValue(15.01m) .WithCurrency("USD") .WithAllowDuplicates(true) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode, response.ResponseMessage); }
public void Test_ReadyLink_Load() { Transaction response = readylinkTrack.AddValue(750m) .WithFee(FeeType.TransactionFee, 2m) .WithCurrency("USD") .Execute(); Assert.IsNotNull(response); System.Diagnostics.Debug.WriteLine(response.HostResponseDate); System.Diagnostics.Debug.WriteLine(response.SystemTraceAuditNumber); // check message data PriorMessageInformation pmi = response.MessageInformation; Assert.IsNotNull(pmi); Assert.AreEqual("1200", pmi.MessageTransactionIndicator); Assert.AreEqual("600008", pmi.ProcessingCode); Assert.AreEqual("200", pmi.FunctionCode); // check response Assert.AreEqual("000", response.ResponseCode); }