public void Test_030_Visa_MultiPart() { Logger.AppendText("\r\nTest_030_Visa_MultiPart"); // AUTH Transaction response = VisaToken.Authorize(30m) .WithCurrency("USD") .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); // FIRST CAPTURE Logger.AppendText("\r\nTest_030_First_Capture"); Transaction firstCapture = response.Capture(15m) .WithMultiCapture(1, 2) .Execute(); Assert.IsNotNull(firstCapture); Assert.AreEqual("00", firstCapture.ResponseCode); // SECOND CAPTURE Logger.AppendText("\r\nTest_030_Second_Capture"); Transaction secondCapture = response.Capture(15m) .WithMultiCapture(2, 2) .Execute(); Assert.IsNotNull(secondCapture); Assert.AreEqual("00", secondCapture.ResponseCode); }
public void Test_028_Visa() { Logger.AppendText("\r\nTest_028_Visa"); Response = VisaToken.Charge(14m) .WithCurrency("USD") .WithAddress(Address) .WithClientTransactionId(ClientTransactionId) .Execute(); }
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); }
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); }
public void Test_015_Visa_Verfiy() { Logger.AppendText("\r\nTest_015_Visa_Verfiy"); Transaction response = VisaToken.Verify() .WithAddress(Address) .Execute(); Assert.IsNotNull(response); Assert.AreEqual("00", response.ResponseCode); }
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); }
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); }
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); }