Language

2Checkout Documentation

Active

You must specify your API username and password using the TwocheckoutConfig.ApiUsername & TwocheckoutConfig.ApiPassword class variables before calling a method in this class. The TwocheckoutSale class provides methods to retrieve and update sales and will return a JSON object.

Method

active

Use to return all active recurring lineitem_id’s on a sale.

Arguments

  • Dictionary Parameters
    • Dictionary containing sale id parameter.

Returns

Returns result as HashMap.

Example Usage:

var dictionary = new Dictionary();
dictionary.Add("sale_id", "4785609712");

String result = TwocheckoutSale.Active(dictionary);

Example Response:

{
  "lineitem_id0": "4785609745",
  "lineitem_id1": "4785609754",
  "lineitem_id2": "4785609763"
}