Esempio n. 1
0
        public void SwipePayment()
        {
            Transaction response = track.Payment(10m)
                                   .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("1220", pmi.MessageTransactionIndicator);
            Assert.AreEqual("500039", pmi.ProcessingCode);
            Assert.AreEqual("200", pmi.FunctionCode);
            // check response
            Assert.AreEqual("000", response.ResponseCode);
        }