Create a gist now

Instantly share code, notes, and snippets.

.NET SDK - Litle Force Capture Transaction
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Litle.Sdk;
//Force Capture Transaction
class Example
{
[STAThread]
public static void Main(String[] args)
{
LitleOnline litle = new LitleOnline();
forceCapture forcecapture = new forceCapture();
forcecapture.amount = 106;
forcecapture.orderId = "12344";
forcecapture.orderSource = orderSourceType.ecommerce;
cardType card = new cardType();
card.type = methodOfPaymentTypeEnum.VI;
card.number = "4100000000000001";
card.expDate = "1210";
forcecapture.card = card;
forceCaptureResponse response = litle.ForceCapture(forcecapture);
//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