Created
April 13, 2012 14:26
-
-
Save VantivSDK/2377251 to your computer and use it in GitHub Desktop.
.NET SDK - Litle eCheckSale Transaction
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using Litle.Sdk; | |
| class Example | |
| { | |
| [STAThread] | |
| public static void Main(String[] args) | |
| { | |
| LitleOnline litle = new LitleOnline(); | |
| echeckSale sale = new echeckSale(); | |
| sale.orderId = "41"; | |
| sale.amount = 2008; | |
| sale.orderSource = orderSourceType.telephone; | |
| contact billToAddress = new contact(); | |
| billToAddress.firstName = "Mike"; | |
| billToAddress.middleInitial = "J"; | |
| billToAddress.lastName = "Hammer"; | |
| sale.billToAddress = billToAddress; | |
| echeckType echeck = new echeckType(); | |
| echeck.accNum = "12345657890"; | |
| echeck.accType = echeckAccountTypeEnum.Checking; | |
| echeck.routingNum = "053100300"; | |
| sale.echeck = echeck; | |
| echeckSalesResponse response = litle.EcheckSale(sale); | |
| //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