public void complexCaptureGivenAuth()
        {
            var capturegivenauth = new captureGivenAuth();

            capturegivenauth.amount  = 106;
            capturegivenauth.orderId = "12344";
            var authInfo = new authInformation();
            var authDate = new DateTime(2002, 10, 9);

            authInfo.authDate   = authDate;
            authInfo.authCode   = "543216";
            authInfo.authAmount = 12345;
            capturegivenauth.authInformation = authInfo;
            var contact = new contact();

            contact.name  = "Bob";
            contact.city  = "lowell";
            contact.state = "MA";
            contact.email = "litle.com";
            capturegivenauth.billToAddress = contact;
            var processinginstructions = new processingInstructions();

            processinginstructions.bypassVelocityCheck = true;
            capturegivenauth.processingInstructions    = processinginstructions;
            capturegivenauth.orderSource = orderSourceType.ecommerce;
            var card = new cardType();

            card.type             = methodOfPaymentTypeEnum.VI;
            card.number           = "4100000000000000";
            card.expDate          = "1210";
            capturegivenauth.card = card;
            var response = litle.CaptureGivenAuth(capturegivenauth);

            Assert.AreEqual("Approved", response.message);
        }
示例#2
0
        public void ProcessingInstructionAndAmexData()
        {
            var creditObj = new credit();

            creditObj.amount      = 2000;
            creditObj.orderId     = "12344";
            creditObj.orderSource = orderSourceType.ecommerce;

            var processingInstructionsObj = new processingInstructions();

            processingInstructionsObj.bypassVelocityCheck = true;

            creditObj.processingInstructions = processingInstructionsObj;

            var card = new cardType();

            card.type    = methodOfPaymentTypeEnum.VI;
            card.number  = "4100000000000001";
            card.expDate = "1210";

            creditObj.card = card;

            var response = litle.Credit(creditObj);

            Assert.AreEqual("Approved", response.message);
        }
 public void complexCaptureGivenAuth()
 {
     var capturegivenauth = new captureGivenAuth();
     capturegivenauth.amount = 106;
     capturegivenauth.orderId = "12344";
     var authInfo = new authInformation();
     var authDate = new DateTime(2002, 10, 9);
     authInfo.authDate = authDate;
     authInfo.authCode = "543216";
     authInfo.authAmount = 12345;
     capturegivenauth.authInformation = authInfo;
     var contact = new contact();
     contact.name = "Bob";
     contact.city = "lowell";
     contact.state = "MA";
     contact.email = "litle.com";
     capturegivenauth.billToAddress = contact;
     var processinginstructions = new processingInstructions();
     processinginstructions.bypassVelocityCheck = true;
     capturegivenauth.processingInstructions = processinginstructions;
     capturegivenauth.orderSource = orderSourceType.ecommerce;
     var card = new cardType();
     card.type = methodOfPaymentTypeEnum.VI;
     card.number = "4100000000000000";
     card.expDate = "1210";
     capturegivenauth.card = card;
     var response = litle.CaptureGivenAuth(capturegivenauth);
     Assert.AreEqual("Approved", response.message);
 }
        public void ProcessingInstructionAndAmexData()
        {
            var creditObj = new credit();
            creditObj.amount = 2000;
            creditObj.orderId = "12344";
            creditObj.orderSource = orderSourceType.ecommerce;

            var processingInstructionsObj = new processingInstructions();
            processingInstructionsObj.bypassVelocityCheck = true;

            creditObj.processingInstructions = processingInstructionsObj;

            var card = new cardType();
            card.type = methodOfPaymentTypeEnum.VI;
            card.number = "4100000000000001";
            card.expDate = "1210";

            creditObj.card = card;

            var response = litle.Credit(creditObj);
            Assert.AreEqual("Approved", response.message);
        }