Esempio n. 1
0
        public void Test_030_Visa_MultiPart()
        {
            // AUTH
            Transaction response = VisaManual.Authorize(30m)
                                   .WithCurrency("USD")
                                   .Execute();

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

            // FIRST CAPTURE
            Transaction firstCapture = response.Capture(15m)
                                       .WithMultiCapture(1, 2)
                                       .Execute();

            Assert.IsNotNull(firstCapture);
            Assert.AreEqual("00", firstCapture.ResponseCode);

            // SECOND CAPTURE
            Transaction secondCapture = response.Capture(15m)
                                        .WithMultiCapture(2, 2)
                                        .Execute();

            Assert.IsNotNull(secondCapture);
            Assert.AreEqual("00", secondCapture.ResponseCode);
        }
Esempio n. 2
0
        public void Test_030_Visa_MultiPart()
        {
            Logger.AppendText("\r\nTest_030_Visa_MultiPart");

            // AUTH
            Response = VisaManual.Authorize(30m)
                       .WithCurrency("USD")
                       .WithAddress(Address)
                       .WithClientTransactionId(ClientTransactionId)
                       .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);
        }