Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created April 13, 2012 15:19
Show Gist options
  • Save VantivSDK/2377604 to your computer and use it in GitHub Desktop.
Save VantivSDK/2377604 to your computer and use it in GitHub Desktop.
.NET SDK - Litle eCheck Verification Transaction
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Litle.Sdk;
//eCheckVerification Example
class Example
{
[STAThread]
public static void Main(String[] args)
{
LitleOnline litle = new LitleOnline();
echeckVerification verification = new echeckVerification();
verification.orderId = "38";
verification.amount = 3002;
verification.orderSource = orderSourceType.telephone;
contact billToAddress = new contact();
billToAddress.firstName = "John";
billToAddress.lastName = "Smith";
billToAddress.phone = "999-999-9999";
verification.billToAddress = billToAddress;
echeckType echeck = new echeckType();
echeck.accNum = "1099999999";
echeck.accType = echeckAccountTypeEnum.Checking;
echeck.routingNum = "053000219";
verification.echeck = echeck;
echeckVerificationResponse response = litle.EcheckVerification(verification);
//Display Results
Console.WriteLine("Response: " + response.response);
Console.WriteLine("Message: " + response.message);
Console.WriteLine("Litle Transaction Id: " + response.litleTxnId);
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment