public void DebitRefundSwipe()
        {
            var response = debitTrackData.Refund(amount)
                           .WithCurrency(currency)
                           .Execute();

            AssertTransactionResponse(response, TransactionStatus.Captured);
        }
Beispiel #2
0
        public void DebitRefund()
        {
            var response = track.Refund(16.01m)
                           .WithCurrency("USD")
                           .WithAllowDuplicates(true)
                           .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual("00", response.ResponseCode, response.ResponseMessage);
        }
Beispiel #3
0
        public void Test_153_refund()
        {
            Transaction response = track.Refund(10m)
                                   .WithCurrency("USD")
                                   .Execute();

            Assert.IsNotNull(response);

            // check message data
            PriorMessageInformation pmi = response.MessageInformation;

            Assert.IsNotNull(pmi);
            Assert.AreEqual("1200", pmi.MessageTransactionIndicator);
            Assert.AreEqual("200008", 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 DebitRefundSwipe()
        {
            var track = new DebitTrackData {
                Value       = "%B4012002000060016^VI TEST CREDIT^251210118039000000000396?;4012002000060016=25121011803939600000?",
                PinBlock    = "32539F50C245A6A93D123412324000AA",
                EntryMethod = EntryMethod.Swipe,
            };

            var response = track.Refund(12.99m)
                           .WithCurrency("USD")
                           .WithAllowDuplicates(true)
                           .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual(SUCCESS, response?.ResponseCode);
            Assert.AreEqual(GetMapping(TransactionStatus.Captured), response?.ResponseMessage);
        }
Beispiel #5
0
        public void DebitRefundChip()
        {
            var track = new DebitTrackData
            {
                Value       = ";4024720012345671=18125025432198712345?",
                EntryMethod = EntryMethod.Swipe,
                PinBlock    = "AFEC374574FC90623D010000116001EE"
            };

            string tagData = "82021C008407A0000002771010950580000000009A031709289C01005F280201245F2A0201245F3401019F02060000000010009F03060000000000009F080200019F090200019F100706010A03A420009F1A0201249F26089CC473F4A4CE18D39F2701809F3303E0F8C89F34030100029F3501229F360200639F370435EFED379F410400000019";

            var response = track.Refund(15.99m)
                           .WithCurrency("USD")
                           .WithAllowDuplicates(true)
                           .WithTagData(tagData)
                           .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual(GetMapping(TransactionStatus.Declined), response?.ResponseMessage);
        }