Skip to content

Instantly share code, notes, and snippets.

@VantivSDK
Created April 13, 2012 19:35
Show Gist options
  • Select an option

  • Save VantivSDK/2379515 to your computer and use it in GitHub Desktop.

Select an option

Save VantivSDK/2379515 to your computer and use it in GitHub Desktop.
.NET SDK - Litle Credit Transaction, Standalone
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Litle.Sdk;
//Standalone credit transaction
class Example
{
[STAThread]
public static void Main(String[] args)
{
LitleOnline litle = new LitleOnline();
credit creditObj = new credit();
creditObj.amount = 106;
creditObj.orderId = "2111";
creditObj.orderSource = orderSourceType.ecommerce;
cardType card = new cardType();
card.type = methodOfPaymentTypeEnum.VI;
card.number = "4100000000000001";
card.expDate = "1210";
creditObj.card = card;
creditResponse response = litle.Credit(creditObj);
//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