4D Payments SDK 2016 .NET Edition
4D Payments SDK 2016 .NET Edition
Questions / Feedback?

LineItems Property

A collection of line items to be included in the Level 3 addendum.

Syntax

[VB.NET]
Public Property LineItems As FDMSLineItemList

[C#]
public FDMSLineItemList LineItems {get;}

Remarks

This property contains a collection of line items to be included in the Level 3 addendum.

This property is used for both Visa and MasterCard Corporate Purchasing Cards. However, the line item fields that each card supports are different.

List of valid Line Item properties for Visa:

List of valid Line Item properties for Mastercard:

An example of setting two line items for a Visa Corporate purchasing card follows:


  FDMSLevel3.CardType = ctVisa

	FDMSLevel3.LineItems.Add(new FDMSLineItem());
  FDMSLevel3.LineItems[0].CommodityCode = "4900" // Books and printed materials
  FDMSLevel3.LineItems[0].Description = "Reference manual"
  FDMSLevel3.LineItems[0].DiscountAmount = "" // No discount
  FDMSLevel3.LineItems[0].ProductCode = "ISBN123456"
  FDMSLevel3.LineItems[0].Quantity = "2"
  FDMSLevel3.LineItems[0].QuantityExponent = "0"
  FDMSLevel3.LineItems[0].UnitCost = "500"  // $5.00
  FDMSLevel3.LineItems[0].TaxAmount = "60"  // $0.60
  FDMSLevel3.LineItems[0].TaxRate = "600"   // 6.00 percent
  FDMSLevel3.LineItems[0].Total = "1060"    // $10.60
  FDMSLevel3.LineItems[0].Units = "each"

	FDMSLevel3.LineItems.Add(new FDMSLineItem());
  FDMSLevel3.LineItems[1].CommodityCode = "4900" // Books and printed materials
  FDMSLevel3.LineItems[1].Description = "Quick Start manual"
  FDMSLevel3.LineItems[1].DiscountAmount = "" // No discount
  FDMSLevel3.LineItems[1].ProductCode = "ISBN654321"
  FDMSLevel3.LineItems[1].UnitCost = "1000" // $10.00
  FDMSLevel3.LineItems[1].Quantity = "1"
  FDMSLevel3.LineItems[1].TaxRate = "600"   // 6.00 percent
  FDMSLevel3.LineItems[1].TaxAmount = "60"  // $0.60
  FDMSLevel3.LineItems[1].Total = "1060"    // $10.60
  FDMSLevel3.LineItems[1].Units = "each"

Default Value

 
 
Copyright (c) 2020 4D Payments Inc. - All rights reserved.
4D Payments SDK 2016 .NET Edition - Version 16.0 [Build 7311]