Esempio n. 1
0
        public void Test_231_swipe_foodStamp_return()
        {
            EBTTrackData track = new EBTTrackData(EbtCardType.FoodStamp);

            track.Value    = ";4012002000060016=25121011803939600000?";
            track.PinBlock = "32539F50C245A6A93D123412324000AA";

            Transaction response = foodCard.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("200080", pmi.ProcessingCode);
            Assert.AreEqual("200", pmi.FunctionCode);
            System.Diagnostics.Debug.WriteLine(response.HostResponseDate);
            System.Diagnostics.Debug.WriteLine(response.SystemTraceAuditNumber);

            // check result
            Assert.AreEqual("000", response.ResponseCode);
        }
Esempio n. 2
0
        public void EbtSaleRefund_TrackData()
        {
            var response = ebtTrackData.Refund(AMOUNT)
                           .WithCurrency(CURRENCY)
                           .Execute();

            AssertEbtResponse(response, TransactionStatus.Captured);
        }
Esempio n. 3
0
 public void Test_221_swipe_refund()
 {
     try {
         cashCard.Refund(10m)
         .WithCurrency("USD")
         .Execute();
     }
     catch (Exception ex) {
         System.Diagnostics.Debug.WriteLine(ex.Message);
     }
 }