コード例 #1
0
        public void echeckCreditWithToken()
        {
            echeckCredit echeckcredit = new echeckCredit();

            echeckcredit.amount      = 12L;
            echeckcredit.orderId     = "12345";
            echeckcredit.orderSource = orderSourceType.ecommerce;
            echeckTokenType echeckToken = new echeckTokenType();

            echeckToken.accType      = echeckAccountTypeEnum.Checking;
            echeckToken.litleToken   = "1234565789012";
            echeckToken.routingNum   = "123456789";
            echeckToken.checkNum     = "123455";
            echeckcredit.echeckToken = echeckToken;
            contact billToAddress = new contact();

            billToAddress.name         = "Bob";
            billToAddress.city         = "Lowell";
            billToAddress.state        = "MA";
            billToAddress.email        = "litle.com";
            echeckcredit.billToAddress = billToAddress;
            echeckCreditResponse response = litle.EcheckCredit(echeckcredit);

            Assert.AreEqual("Approved", response.message);
        }
コード例 #2
0
        public void EcheckVerificationWithEcheckToken()
        {
            echeckVerification echeckVerificationObject = new echeckVerification();

            echeckVerificationObject.amount      = 123456;
            echeckVerificationObject.orderId     = "12345";
            echeckVerificationObject.orderSource = orderSourceType.ecommerce;

            echeckTokenType echeckTokenObj = new echeckTokenType();

            echeckTokenObj.accType    = echeckAccountTypeEnum.Checking;
            echeckTokenObj.litleToken = "1234565789012";
            echeckTokenObj.routingNum = "123456789";
            echeckTokenObj.checkNum   = "123455";

            contact contactObj = new contact();

            contactObj.name  = "Bob";
            contactObj.city  = "lowell";
            contactObj.state = "MA";
            contactObj.email = "litle.com";

            echeckVerificationObject.token         = echeckTokenObj;
            echeckVerificationObject.billToAddress = contactObj;

            echeckVerificationResponse response = litle.EcheckVerification(echeckVerificationObject);

            StringAssert.AreEqualIgnoringCase("Approved", response.message);
        }
コード例 #3
0
        public void EcheckSaleWithEcheckToken()
        {
            var echeckSaleObj = new echeckSale();
            echeckSaleObj.reportGroup = "Planets";
            echeckSaleObj.amount = 123456;
            echeckSaleObj.verify = true;
            echeckSaleObj.orderId = "12345";
            echeckSaleObj.orderSource = orderSourceType.ecommerce;

            var echeckTokenTypeObj = new echeckTokenType();
            echeckTokenTypeObj.accType = echeckAccountTypeEnum.Checking;
            echeckTokenTypeObj.litleToken = "1234565789012";
            echeckTokenTypeObj.routingNum = "123456789";
            echeckTokenTypeObj.checkNum = "123455";

            var customBillingObj = new customBilling();
            customBillingObj.phone = "123456789";
            customBillingObj.descriptor = "good";

            var contactObj = new contact();
            contactObj.name = "Bob";
            contactObj.city = "lowell";
            contactObj.state = "MA";
            contactObj.email = "litle.com";

            echeckSaleObj.token = echeckTokenTypeObj;
            echeckSaleObj.customBilling = customBillingObj;
            echeckSaleObj.billToAddress = contactObj;

            var response = litle.EcheckSale(echeckSaleObj);
            StringAssert.AreEqualIgnoringCase("Approved", response.message);
        }
コード例 #4
0
        public void echeckRedepositWithEcheckToken()
        {
            var echeckredeposit = new echeckRedeposit();
            echeckredeposit.litleTxnId = 123456;
            var echeckToken = new echeckTokenType();
            echeckToken.accType = echeckAccountTypeEnum.Checking;
            echeckToken.litleToken = "1234565789012";
            echeckToken.routingNum = "123456789";
            echeckToken.checkNum = "123455";

            echeckredeposit.token = echeckToken;
            var response = litle.EcheckRedeposit(echeckredeposit);
            Assert.AreEqual("Approved", response.message);
        }
コード例 #5
0
        public void echeckRedepositWithEcheckToken()
        {
            var echeckredeposit = new echeckRedeposit();

            echeckredeposit.litleTxnId = 123456;
            var echeckToken = new echeckTokenType();

            echeckToken.accType    = echeckAccountTypeEnum.Checking;
            echeckToken.litleToken = "1234565789012";
            echeckToken.routingNum = "123456789";
            echeckToken.checkNum   = "123455";

            echeckredeposit.token = echeckToken;
            var response = litle.EcheckRedeposit(echeckredeposit);

            Assert.AreEqual("Approved", response.message);
        }
コード例 #6
0
        public void EcheckSaleWithEcheckToken()
        {
            echeckSale echeckSaleObj = new echeckSale();

            echeckSaleObj.reportGroup = "Planets";
            echeckSaleObj.amount      = 123456;
            echeckSaleObj.verify      = true;
            echeckSaleObj.orderId     = "12345";
            echeckSaleObj.orderSource = orderSourceType.ecommerce;

            echeckTokenType echeckTokenTypeObj = new echeckTokenType();

            echeckTokenTypeObj.accType    = echeckAccountTypeEnum.Checking;
            echeckTokenTypeObj.litleToken = "1234565789012";
            echeckTokenTypeObj.routingNum = "123456789";
            echeckTokenTypeObj.checkNum   = "123455";

            customBilling customBillingObj = new customBilling();

            customBillingObj.phone      = "123456789";
            customBillingObj.descriptor = "good";

            contact contactObj = new contact();

            contactObj.name  = "Bob";
            contactObj.city  = "lowell";
            contactObj.state = "MA";
            contactObj.email = "litle.com";

            echeckSaleObj.token         = echeckTokenTypeObj;
            echeckSaleObj.customBilling = customBillingObj;
            echeckSaleObj.billToAddress = contactObj;

            echeckSalesResponse response = litle.EcheckSale(echeckSaleObj);

            StringAssert.AreEqualIgnoringCase("Approved", response.message);
        }
コード例 #7
0
 public void echeckCreditWithToken()
 {
     var echeckcredit = new echeckCredit();
     echeckcredit.amount = 12L;
     echeckcredit.orderId = "12345";
     echeckcredit.orderSource = orderSourceType.ecommerce;
     var echeckToken = new echeckTokenType();
     echeckToken.accType = echeckAccountTypeEnum.Checking;
     echeckToken.litleToken = "1234565789012";
     echeckToken.routingNum = "123456789";
     echeckToken.checkNum = "123455";
     echeckcredit.echeckToken = echeckToken;
     var billToAddress = new contact();
     billToAddress.name = "Bob";
     billToAddress.city = "Lowell";
     billToAddress.state = "MA";
     billToAddress.email = "litle.com";
     echeckcredit.billToAddress = billToAddress;
     var response = litle.EcheckCredit(echeckcredit);
     Assert.AreEqual("Approved", response.message);
 }