public void simpleCaptureGivenAuthWithToken() { 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; capturegivenauth.orderSource = orderSourceType.ecommerce; var cardtoken = new cardTokenType(); cardtoken.litleToken = "123456789101112"; cardtoken.expDate = "1210"; cardtoken.cardValidationNum = "555"; cardtoken.type = methodOfPaymentTypeEnum.VI; capturegivenauth.token = cardtoken; var response = litle.CaptureGivenAuth(capturegivenauth); Assert.AreEqual("Approved", response.message); }
public void simpleForceCaptureWithToken() { var forcecapture = new forceCapture(); forcecapture.amount = 106; forcecapture.orderId = "12344"; forcecapture.orderSource = orderSourceType.ecommerce; var token = new cardTokenType(); token.litleToken = "123456789101112"; token.expDate = "1210"; token.cardValidationNum = "555"; token.type = methodOfPaymentTypeEnum.VI; forcecapture.token = token; var response = litle.ForceCapture(forcecapture); Assert.AreEqual("Approved", response.message); ; }
public void test60() { authorization auth = new authorization(); auth.orderId = "60"; auth.amount = 15000; auth.orderSource = orderSourceType.ecommerce; cardTokenType token = new cardTokenType(); token.litleToken = "1712999999999999"; token.expDate = "1112"; auth.token = token; authorizationResponse response = litle.Authorize(auth); Assert.AreEqual("823", response.response); }
public void Test60() { authorization auth = new authorization(); auth.id = "1"; auth.orderId = "60"; auth.amount = 15000; auth.orderSource = orderSourceType.ecommerce; cardTokenType token = new cardTokenType(); token.cnpToken = "1112000100000085"; token.expDate = "1121"; auth.token = token; authorizationResponse response = cnp.Authorize(auth); Assert.AreEqual("823", response.response); }
public void test59() { authorization auth = new authorization(); auth.orderId = "59"; auth.amount = 15000; auth.orderSource = orderSourceType.ecommerce; cardTokenType token = new cardTokenType(); token.litleToken = "1712990000040196"; token.expDate = "1112"; auth.token = token; authorizationResponse response = litle.Authorize(auth); Assert.AreEqual("822", response.response); Assert.AreEqual("Token was not found", response.message); }
public void simpleForceCaptureWithToken() { forceCapture forcecapture = new forceCapture(); forcecapture.amount = 106; forcecapture.orderId = "12344"; forcecapture.orderSource = orderSourceType.ecommerce; cardTokenType token = new cardTokenType(); token.litleToken = "123456789101112"; token.expDate = "1210"; token.cardValidationNum = "555"; token.type = methodOfPaymentTypeEnum.VI; forcecapture.token = token; forceCaptureResponse response = litle.ForceCapture(forcecapture); Assert.AreEqual("Approved", response.message);; }
public void Test60() { var auth = new authorization(); auth.id = "1"; auth.orderId = "60"; auth.amount = 15000; auth.orderSource = orderSourceType.ecommerce; var token = new cardTokenType(); token.cnpToken = "1112000100000085"; token.expDate = "1121"; auth.token = token; var response = this.SendTransaction <authorizationResponse>(auth); Assert.AreEqual("823", response.response); }
public void Test59() { authorization auth = new authorization(); auth.id = "1"; auth.orderId = "59"; auth.amount = 15000; auth.orderSource = orderSourceType.ecommerce; cardTokenType token = new cardTokenType(); token.cnpToken = "1111000100092332"; token.expDate = "1121"; auth.token = token; authorizationResponse response = cnp.Authorize(auth); Assert.AreEqual("822", response.response); Assert.AreEqual("Token was not found", response.message); }
public void Test59() { var auth = new authorization(); auth.id = "1"; auth.orderId = "59"; auth.amount = 15000; auth.orderSource = orderSourceType.ecommerce; var token = new cardTokenType(); token.cnpToken = "1111000100092332"; token.expDate = "1121"; auth.token = token; var response = this.SendTransaction <authorizationResponse>(auth); Assert.AreEqual("822", response.response); Assert.AreEqual("Token was not found", response.message); }
public void simpleCaptureGivenAuthWithTokenAndSpecialCharacters() { var capturegivenauth = new captureGivenAuth(); capturegivenauth.amount = 106; capturegivenauth.orderId = "<'&\">"; var authInfo = new authInformation(); var authDate = new DateTime(2002, 10, 9); authInfo.authDate = authDate; authInfo.authCode = "543216"; authInfo.authAmount = 12345; capturegivenauth.authInformation = authInfo; capturegivenauth.orderSource = orderSourceType.ecommerce; var cardtoken = new cardTokenType(); cardtoken.litleToken = "123456789101112"; cardtoken.expDate = "1210"; cardtoken.cardValidationNum = "555"; cardtoken.type = methodOfPaymentTypeEnum.VI; capturegivenauth.token = cardtoken; var response = litle.CaptureGivenAuth(capturegivenauth); Assert.AreEqual("Approved", response.message); }
public void test60() { var auth = new authorization(); auth.orderId = "60"; auth.amount = 15000; auth.orderSource = orderSourceType.ecommerce; var token = new cardTokenType(); token.litleToken = "1712999999999999"; token.expDate = "1112"; auth.token = token; var response = litle.Authorize(auth); Assert.AreEqual("823", response.response); Assert.AreEqual("Token was invalid", response.message); }