Beispiel #1
0
        public void Test_031_MasterCard_MultiPart()
        {
            // AUTH
            Transaction response = MasterCardManual.Authorize(50m)
                                   .WithCurrency("USD")
                                   .Execute();

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

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

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

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

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

            // SECOND CAPTURE
            Transaction thirdCapture = response.Capture(10m)
                                       .WithMultiCapture(2, 3)
                                       .Execute();

            Assert.IsNotNull(thirdCapture);
            Assert.AreEqual("00", thirdCapture.ResponseCode);
        }
Beispiel #2
0
        public void Test_032_MasterCard_Single_Shipment()
        {
            // AUTH
            Transaction response = MasterCardManual.Authorize(60m)
                                   .WithCurrency("USD")
                                   .Execute();

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

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

            Assert.IsNotNull(firstCapture);
            Assert.AreEqual("00", firstCapture.ResponseCode);
        }
Beispiel #3
0
        public void Test_031_MasterCard_MultiPart()
        {
            // AUTH
            Logger.AppendText("\r\nTest_031_MasterCard_MultiPart");

            Response = MasterCardManual.Authorize(50m)
                       .WithCurrency("USD")
                       .WithAddress(Address)
                       .WithClientTransactionId(ClientTransactionId)
                       .Execute();
            Assert.IsNotNull(Response);
            Assert.AreEqual("00", Response.ResponseCode);

            // FIRST CAPTURE
            Logger.AppendText("\r\nTest_031_First_Capture");

            Transaction firstCapture = Response.Capture(30m)
                                       .WithMultiCapture(1, 3)
                                       .Execute();

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

            // SECOND CAPTURE
            Logger.AppendText("\r\nTest_031_Second_Capture");

            Transaction secondCapture = Response.Capture(10m)
                                        .WithMultiCapture(2, 3)
                                        .Execute();

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

            // THIRD CAPTURE
            Logger.AppendText("\r\nTest_031_Third_Capture");

            Transaction thirdCapture = Response.Capture(10m)
                                       .WithMultiCapture(3, 3)
                                       .Execute();

            Assert.IsNotNull(thirdCapture);
            Assert.AreEqual("00", thirdCapture.ResponseCode);
        }
Beispiel #4
0
        public void Test_032_MasterCard_Single_Shipment()
        {
            // AUTH
            Logger.AppendText("\r\nTest_032_MasterCard_Single_Shipment");

            Response = MasterCardManual.Authorize(60m)
                       .WithCurrency("USD")
                       .WithAddress(Address)
                       .WithClientTransactionId(ClientTransactionId)
                       .Execute();
            Assert.IsNotNull(Response);
            Assert.AreEqual("00", Response.ResponseCode);

            // FIRST CAPTURE
            Logger.AppendText("\r\nTest_032_First_Capture");

            Transaction firstCapture = Response.Capture(60m)
                                       .WithMultiCapture(1, 1)
                                       .Execute();

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