예제 #1
0
        public void Test_028_Visa()
        {
            Logger.AppendText("\r\nTest_028_Visa");

            Response = VisaToken.Charge(14m)
                       .WithCurrency("USD")
                       .WithAddress(Address)
                       .WithClientTransactionId(ClientTransactionId)
                       .Execute();
        }
예제 #2
0
        public void Test_028_Visa()
        {
            // string token = VisaManual.Tokenize();

            Transaction response = VisaToken.Charge(14m)
                                   .WithCurrency("USD")
                                   .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual("00", response.ResponseCode);
        }
예제 #3
0
        public void Test_028_Visa()
        {
            Logger.AppendText("\r\nTest_028_Visa");

            Transaction response = VisaToken.Charge(14m)
                                   .WithCurrency("USD")
                                   .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual("00", response.ResponseCode);
        }
예제 #4
0
        public void Test_018_Visa_Level3_Sale()
        {
            Logger.AppendText("\r\nTest_018_Visa_Level3_Sale");

            var commercialData = new CommercialData(TaxType.NOTUSED)
            {
                PoNumber = "9876543210"
            };

            commercialData.AddLineItems(
                new CommercialLineItem {
                CommodityCode = "030",
                Description   = "Misc Good",
                UPC           = "012345678901",
                Quantity      = 5.1m,
                UnitOfMeasure = "lbs",
                UnitCost      = 0.6m,
                //DiscountAmount = 0.61m,
                TotalAmount          = 0.62m,
                TaxAmount            = 0.63m,
                ExtendedAmount       = 0.64m,
                CreditDebitIndicator = CreditDebitIndicator.Credit,
                NetGrossIndicator    = NetGrossIndicator.Gross
            },
                new CommercialLineItem {
                CommodityCode = "031",
                Description   = "Misc Good2",
                UPC           = "012345678901",
                Quantity      = 5.1m,
                UnitOfMeasure = "lbs",
                UnitCost      = 0.6m,
                //DiscountAmount = 0.61m,
                TotalAmount          = 0.62m,
                TaxAmount            = 0.63m,
                ExtendedAmount       = 0.64m,
                CreditDebitIndicator = CreditDebitIndicator.Credit,
                NetGrossIndicator    = NetGrossIndicator.Gross
            }
                );

            Transaction response = VisaToken.Charge(0.52m)
                                   .WithCurrency("USD")
                                   .WithCommercialData(commercialData)
                                   .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual("00", response.ResponseCode);
        }
예제 #5
0
        public void Test_026_Visa_Internet_ECI_6()
        {
            Logger.AppendText("\r\nTest_026_Visa_Internet_ECI_6");

            VisaManual.ThreeDSecure = new ThreeDSecure {
                Eci = "6",
                AuthenticationValue = "1234567890123456789012345678901234567890"
            };

            Transaction response = VisaToken.Charge(0.81m)
                                   .WithCurrency("USD")
                                   .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual("00", response.ResponseCode);
        }
예제 #6
0
        public void Test_001_Visa_Level_II_Sale()
        {
            Logger.AppendText("\r\nTest_001_Visa_Level_II_Sale");

            var commercialData = new CommercialData(TaxType.NOTUSED)
            {
                PoNumber = "9876543210"
            };

            Transaction response = VisaToken.Charge(0.52m)
                                   .WithCurrency("USD")
                                   .WithCommercialData(commercialData)
                                   .Execute();

            Assert.IsNotNull(response);
            Assert.AreEqual("00", response.ResponseCode);
        }