public void complexCaptureGivenAuth() { CaptureGivenAuth capturegivenauth = new CaptureGivenAuth(); capturegivenauth.Amount = 106; capturegivenauth.OrderId = "12344"; AuthInformation authInfo = new AuthInformation(); DateTime authDate = new DateTime(2002, 10, 9); authInfo.AuthDate = authDate; authInfo.AuthCode = "543216"; authInfo.AuthAmount = 12345; capturegivenauth.AuthInformation = authInfo; Contact contact = new Contact(); contact.Name = "Bob"; contact.City = "lowell"; contact.State = "MA"; contact.Email ="litle.com"; capturegivenauth.BillToAddress = contact; ProcessingInstructions processinginstructions = new ProcessingInstructions(); processinginstructions.BypassVelocityCheck = true; capturegivenauth.ProcessingInstructions = processinginstructions; capturegivenauth.OrderSource = OrderSourceType.Ecommerce; CardType card = new CardType(); card.Type = MethodOfPaymentTypeEnum.VI; card.Number = "4100000000000000"; card.ExpDate = "1210"; capturegivenauth.Card = card; CaptureGivenAuthResponse response = litle.CaptureGivenAuth(capturegivenauth); Assert.AreEqual("Approved", response.Message); }
public void ProcessingInstructionAndAmexData() { Credit creditObj = new Credit(); creditObj.Amount = 2000; creditObj.OrderId = "12344"; creditObj.OrderSource = OrderSourceType.Ecommerce; ProcessingInstructions processingInstructionsObj = new ProcessingInstructions(); processingInstructionsObj.BypassVelocityCheck = true; creditObj.ProcessingInstructions = processingInstructionsObj; CardType card = new CardType(); card.Type = MethodOfPaymentTypeEnum.VI; card.Number = "4100000000000001"; card.ExpDate = "1210"; creditObj.Card = card; CreditResponse response = litle.Credit(creditObj); Assert.AreEqual("Approved", response.Message); }