TIWCGJQPayPalCartProduct Class

JQPayPalCart product object.

Namespace: IWCGJQPayPalCart
TCGIndexedCollectionItem
  IWCGJQCommon.TIWCGJSon
    IWCGJQPayPalCart.TIWCGJQPayPalCartProduct
type
 TIWCGJQPayPalCartProduct = class(TIWCGJSon)
 end;

The TIWCGJQPayPalCartProduct type exposes the following members.

Show:
 NameDescription
Create(TCollection)

Initializes a new instance of the TIWCGJSon class. (Inherited from TIWCGJSon.)

CreateSingle(TPersistent,string)

Initializes a new instance of the TIWCGJSon class. (Inherited from TIWCGJSon.)

Top
Show:
 NameDescription
Amount

The price or amount of the product, service, or contribution, not including shipping, handling, or tax. If this variable is omitted from Buy Now or Donate buttons, buyers enter their own amount at the time of payment.

CGJSContainer

Represents property CGJSContainer. (Inherited from TIWCGJSon.)

ClassData

Represents property ClassData. (Inherited from TIWCGJSon.)

CurrencyCode

The currency of the payment. The default is USD

DiscountAmount

Discount amount associated with an item. It must be less than the selling price of the item. If you specify discount_amount and discount_amount2 is not defined, then this flat amount is applied regardless of the quantity of items purchased.

DiscountAmount2

Discount amount associated with each additional quantity of the item. It must be equal to or less than the selling price of the item. A discount_amount must also be specified as greater than or equal to 0 for discount_amount2 to take effect.

DiscountRate

Discount rate (percentage) associated with an item. It must be set to a value less than 100. If you do not set discount_rate2, the value in discount_rate applies only to the first item regardless of the quantity of items purchased.

DiscountRate2

Discount rate (percentage) associated with each additional quantity of the item. It must be equal to or less 100. A discount_rate must also be specified as greater than or equal to 0 for discount_rate2 to take effect.

HRef

HRef in product caption

ImageUrl

The URL of the 150x50-pixel image displayed as your logo in the upper left corner of the PayPal checkout pages. Default – Your business name, if you have a PayPal Business account, or your email address, if you have PayPal Premier or Personal account.

InstList

Represents property InstList. (Inherited from TIWCGJSon.)

IsStored

Represents property IsStored. (Inherited from TIWCGJSon.)

ItemName

Description of item. If this variable is omitted, buyers enter their own name during checkout.

JSon

Return the Interface of SuperObject (ISuperObject) (Inherited from TIWCGJSon.)

JSonEvents[string]

Represents property JSonEvents[string]. (Inherited from TIWCGJSon.)

List

Represents property List. (Inherited from TIWCGJSon.)

MaxQuantity

Represents property MaxQuantity.

MemberList

Represents property MemberList. (Inherited from TIWCGJSon.)

Owner

Represents property Owner. (Inherited from TIWCGJSon.)

PropCount

Represents property PropCount. (Inherited from TIWCGJSon.)

PropIndexByName[string]

Represents property PropIndexByName[string]. (Inherited from TIWCGJSon.)

PropList

Represents property PropList. (Inherited from TIWCGJSon.)

PropName

Represents property PropName. (Inherited from TIWCGJSon.)

PropNameByIndex[Integer]

Represents property PropNameByIndex[Integer]. (Inherited from TIWCGJSon.)

Quantity

Number of items. If profile-based shipping rates are configured with a basis of quantity, the sum of quantity values is used to calculate the shipping charges for the payment. PayPal appends a sequence number to identify uniquely the item in the PayPal Shopping Cart, for example, quantity1, quantity2, and so on. NOTE:The value for quantity must be a positive integer. Null, zero, or negative numbers are not allowed.

SellerPayPalEMail

PayPal ID or an email address associated with your PayPal account. Email addresses must be confirmed.

Shipping

The cost of shipping this item. If you specify shipping and shipping2 is not defined, this flat amount is charged regardless of the quantity of items purchased. This shipping variable is valid only for Buy Now and Add to Cart buttons. Default – If profile-based shipping rates are configured, buyers are charged an amount according to the shipping methods they choose.

Shipping2

The cost of shipping each additional unit of this item. If this variable is omitted and profile-based shipping rates are configured, buyers are charged an amount according to the shipping methods they choose.

SObj

Represents property SObj. (Inherited from TIWCGJSon.)

Tax

Transaction-based tax override variable. Set this variable to a flat tax amount to apply to the payment regardless of the buyer’s location. This value overrides any tax settings set in your account profile. Default – Profile tax settings, if any, apply.

TaxRate

Transaction-based tax override variable. Set this variable to a percentage that applies to the amount multiplied by the quantity selected during checkout. This value overrides any tax settings set in your account profile. Allowable values are numbers 0.001 through 100. Default – Profile tax settings, if any, apply.

UndefinedQuantity

If true, allows buyers to specify the quantity.

Weight

Weight of items. If profile-based shipping rates are configured with a basis of weight, the sum of weight values is used to calculate the shipping charges for the payment. Allowable values are decimals numbers, with 2 significant digits to the right of the decimal point.

WeightUnit

The unit of measure if weight is specified.

Top
Show:
 NameDescription
AddBooleanMember(string,Boolean,Boolean,Boolean)

Represents method AddBooleanMember(string,Boolean,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddColorMember(string,TIWCGColor,Boolean,Boolean)

Represents method AddColorMember(string,TIWCGColor,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddCurrencyMember(string,Currency,Boolean,Boolean)

Represents method AddCurrencyMember(string,Currency,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddDoubleMember(string,Double,Boolean,Boolean)

Represents method AddDoubleMember(string,Double,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddDynObjListMember(string,Boolean,Boolean)

Represents method AddDynObjListMember(string,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddEnumMember(string,string[],Byte,Boolean,Boolean)

Represents method AddEnumMember(string,string[],Byte,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddEnumSetMember(string,string[],Void,Word,Boolean,Boolean)

Represents method AddEnumSetMember(string,string[],Void,Word,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddFuncMember(string,string,string,Boolean,TIWCGJSonFuncClass,Boolean,Boolean)

Represents method AddFuncMember(string,string,string,Boolean,TIWCGJSonFuncClass,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddHTML5(TIWHTMLTag)

Represents method AddHTML5(TIWHTMLTag). (Inherited from TIWCGJSon.)

AddIntegerMember(string,Integer,Boolean,Boolean)

Represents method AddIntegerMember(string,Integer,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddJSonMember(string,TCGJSon,Boolean,Boolean)

Represents method AddJSonMember(string,TCGJSon,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddMembers

The procedure add jquery properties.

Notes to Inheritors

Override this procedure to add jquery plugin options.

 (Overrides TIWCGJSon.AddMembers.)
AddObjListMember(string,TIWCGJSonListClass,Boolean,Boolean,Boolean)

Represents method AddObjListMember(string,TIWCGJSonListClass,Boolean,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddObjMember(string,TIWCGJSonClass,Boolean,Boolean,Boolean)

Represents method AddObjMember(string,TIWCGJSonClass,Boolean,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddSimpleArrayMember(string,Boolean,Boolean,Boolean)

Represents method AddSimpleArrayMember(string,Boolean,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddStringMember(string,string,Boolean,Boolean)

Represents method AddStringMember(string,string,Boolean,Boolean). (Inherited from TIWCGJSon.)

AddVariantMember(string,Variant,Boolean,Boolean)

Represents method AddVariantMember(string,Variant,Boolean,Boolean). (Inherited from TIWCGJSon.)

AfterConstruction

Represents method AfterConstruction. (Inherited from TIWCGJSon.)

Assign(TPersistent)

Represents method Assign(TPersistent). (Inherited from TIWCGJSon.)

CheckJSonMember(Integer)

Represents method CheckJSonMember(Integer). (Inherited from TIWCGJSon.)

ConvertEnumToString(string)

Represents method ConvertEnumToString(string). (Inherited from TIWCGJSon.)

ConvertSetToString(string,TCGStringArray)

Represents method ConvertSetToString(string,TCGStringArray). (Inherited from TIWCGJSon.)

FreeJSonObj(Integer)

Overloaded. Represents method FreeJSonObj(Integer). (Inherited from TIWCGJSon.)

FreeJSonObj(string)

Overloaded. Represents method FreeJSonObj(string). (Inherited from TIWCGJSon.)

GetBooleanValue(Integer)

Represents method GetBooleanValue(Integer). (Inherited from TIWCGJSon.)

GetCGJSContainer

Represents method GetCGJSContainer. (Inherited from TIWCGJSon.)

GetColorValue(Integer)

Represents method GetColorValue(Integer). (Inherited from TIWCGJSon.)

GetCurrencyValue(Integer)

Represents method GetCurrencyValue(Integer). (Inherited from TIWCGJSon.)

GetCustomJq(string,ISuperObject)

Represents method GetCustomJq(string,ISuperObject). (Inherited from TIWCGJSon.)

GetDoubleValue(Integer)

Represents method GetDoubleValue(Integer). (Inherited from TIWCGJSon.)

GetDynObjListValue(Integer)

Represents method GetDynObjListValue(Integer). (Inherited from TIWCGJSon.)

GetEnumAsString(Integer)

Represents method GetEnumAsString(Integer). (Inherited from TIWCGJSon.)

GetEnumerValue(Integer)

Represents method GetEnumerValue(Integer). (Inherited from TIWCGJSon.)

GetEnumSetValue(Integer,Pointer)

Represents method GetEnumSetValue(Integer,Pointer). (Inherited from TIWCGJSon.)

GetFixedScript(TIWCGJSonFunc,Boolean)

Represents method GetFixedScript(TIWCGJSonFunc,Boolean). (Inherited from TIWCGJSon.)

GetFuncValue(Integer)

Represents method GetFuncValue(Integer). (Inherited from TIWCGJSon.)

GetHTMLName

Represents method GetHTMLName. (Inherited from TIWCGJSon.)

GetImplComponent

Represents method GetImplComponent. (Inherited from TIWCGJSon.)

GetIntegerValue(Integer)

Represents method GetIntegerValue(Integer). (Inherited from TIWCGJSon.)

GetIsStored

Represents method GetIsStored. (Inherited from TIWCGJSon.)

GetItemIndex

Represents method GetItemIndex. (Inherited from TIWCGJSon.)

GetIWCLName

Represents method GetIWCLName. (Inherited from TIWCGJSon.)

GetJSon

Represents method GetJSon. (Inherited from TIWCGJSon.)

GetJSonByType(Boolean,Boolean)

Represents method GetJSonByType(Boolean,Boolean). (Inherited from TIWCGJSon.)

GetJSonEx(Boolean,Boolean,TIWCGResponseMemberList,Boolean)

Represents method GetJSonEx(Boolean,Boolean,TIWCGResponseMemberList,Boolean). (Inherited from TIWCGJSon.)

GetJSonValue(Integer)

Represents method GetJSonValue(Integer). (Inherited from TIWCGJSon.)

GetJSonValueObj(Integer)

Represents method GetJSonValueObj(Integer). (Inherited from TIWCGJSon.)

GetMemberJSon(TCGJSonMember,ISuperObject,Boolean,Boolean,string)

Represents method GetMemberJSon(TCGJSonMember,ISuperObject,Boolean,Boolean,string). (Inherited from TIWCGJSon.)

GetMemberSetterHandler(TObject,TCGJSonMember)

Represents method GetMemberSetterHandler(TObject,TCGJSonMember). (Inherited from TIWCGJSon.)

GetMemberSetterScriptParts(TIWCGResponseMemberList,TIWCGJScript)

Represents method GetMemberSetterScriptParts(TIWCGResponseMemberList,TIWCGJScript). (Inherited from TIWCGJSon.)

GetMembersJSon(TIWCGResponseMemberList,Boolean,Boolean)

Represents method GetMembersJSon(TIWCGResponseMemberList,Boolean,Boolean). (Inherited from TIWCGJSon.)

GetObjListValue(Integer)

Represents method GetObjListValue(Integer). (Inherited from TIWCGJSon.)

GetObjValue(Integer)

Represents method GetObjValue(Integer). (Inherited from TIWCGJSon.)

GetOwner

Represents method GetOwner. (Inherited from TIWCGJSon.)

GetPropName

Represents method GetPropName. (Inherited from TIWCGJSon.)

GetSimpleArrayValue(Integer)

Represents method GetSimpleArrayValue(Integer). (Inherited from TIWCGJSon.)

GetStringValue(Integer)

Represents method GetStringValue(Integer). (Inherited from TIWCGJSon.)

GetVariantValue(Integer)

Represents method GetVariantValue(Integer). (Inherited from TIWCGJSon.)

InternalGetJSon(TEachPropJSonProc,Boolean,Boolean,Void,Boolean,Boolean,TIWCGResponseMemberList,Boolean)

Represents method InternalGetJSon(TEachPropJSonProc,Boolean,Boolean,Void,Boolean,Boolean,TIWCGResponseMemberList,Boolean). (Inherited from TIWCGJSon.)

IsArray

Represents method IsArray. (Inherited from TIWCGJSon.)

IsBooleanStored(Integer)

Represents method IsBooleanStored(Integer). (Inherited from TIWCGJSon.)

IsColorStored(Integer)

Represents method IsColorStored(Integer). (Inherited from TIWCGJSon.)

IsCurrencyStored(Integer)

Represents method IsCurrencyStored(Integer). (Inherited from TIWCGJSon.)

IsDoubleStored(Integer)

Represents method IsDoubleStored(Integer). (Inherited from TIWCGJSon.)

IsEnumerStored(Integer)

Represents method IsEnumerStored(Integer). (Inherited from TIWCGJSon.)

IsEnumSetStored(Integer)

Represents method IsEnumSetStored(Integer). (Inherited from TIWCGJSon.)

IsFuncStored(Integer)

Represents method IsFuncStored(Integer). (Inherited from TIWCGJSon.)

IsIntegerStored(Integer)

Represents method IsIntegerStored(Integer). (Inherited from TIWCGJSon.)

IsJSonObjStored(string)

Represents method IsJSonObjStored(string). (Inherited from TIWCGJSon.)

IsJSonStored(Integer)

Represents method IsJSonStored(Integer). (Inherited from TIWCGJSon.)

IsObjStored(Integer)

Represents method IsObjStored(Integer). (Inherited from TIWCGJSon.)

IsStringStored(Integer)

Represents method IsStringStored(Integer). (Inherited from TIWCGJSon.)

IsVariantStored(Integer)

Represents method IsVariantStored(Integer). (Inherited from TIWCGJSon.)

JSonEscape

Represents method JSonEscape. (Inherited from TIWCGJSon.)

JSonIdent

Represents method JSonIdent. (Inherited from TIWCGJSon.)

JSonNameQuote

Represents method JSonNameQuote. (Inherited from TIWCGJSon.)

ResetProps

Represents method ResetProps. (Inherited from TIWCGJSon.)

SetBooleanValue(Integer,Boolean)

Represents method SetBooleanValue(Integer,Boolean). (Inherited from TIWCGJSon.)

SetColorValue(Integer,TIWCGColor)

Represents method SetColorValue(Integer,TIWCGColor). (Inherited from TIWCGJSon.)

SetCurrencyValue(Integer,Currency)

Represents method SetCurrencyValue(Integer,Currency). (Inherited from TIWCGJSon.)

SetDoubleValue(Integer,Double)

Represents method SetDoubleValue(Integer,Double). (Inherited from TIWCGJSon.)

SetDynObjListValue(Integer,TIWCGJSonDynObjList)

Represents method SetDynObjListValue(Integer,TIWCGJSonDynObjList). (Inherited from TIWCGJSon.)

SetEnumerValue(Integer,Byte)

Represents method SetEnumerValue(Integer,Byte). (Inherited from TIWCGJSon.)

SetEnumSetValue(Integer,Pointer)

Represents method SetEnumSetValue(Integer,Pointer). (Inherited from TIWCGJSon.)

SetFuncValue(Integer,TIWCGJSonFunc)

Represents method SetFuncValue(Integer,TIWCGJSonFunc). (Inherited from TIWCGJSon.)

SetIntegerValue(Integer,Integer)

Represents method SetIntegerValue(Integer,Integer). (Inherited from TIWCGJSon.)

SetJSonValue(Integer,TCGJSon)

Represents method SetJSonValue(Integer,TCGJSon). (Inherited from TIWCGJSon.)

SetObjListValue(Integer,TIWCGJSonList)

Represents method SetObjListValue(Integer,TIWCGJSonList). (Inherited from TIWCGJSon.)

SetObjValue(Integer,TIWCGJSon)

Represents method SetObjValue(Integer,TIWCGJSon). (Inherited from TIWCGJSon.)

SetSimpleArrayValue(Integer,TIWCGJSonSimpleArray)

Represents method SetSimpleArrayValue(Integer,TIWCGJSonSimpleArray). (Inherited from TIWCGJSon.)

SetStringValue(Integer,string)

Represents method SetStringValue(Integer,string). (Inherited from TIWCGJSon.)

SetVariantValue(Integer,Variant)

Represents method SetVariantValue(Integer,Variant). (Inherited from TIWCGJSon.)

StoreProperty(PPropInfo,TObject)

Represents method StoreProperty(PPropInfo,TObject). (Inherited from TIWCGJSon.)

SupportsSetter(TObject,TCGJSonMember)

Represents method SupportsSetter(TObject,TCGJSonMember). (Inherited from TIWCGJSon.)

Top
Show:
 NameDescription
_Events_

Represents property _Events_. (Inherited from TIWCGJSon.)

Top

Helper object. You can use this helper to create the object of the product.

var
  MyProd: TIWCGJQPayPalCartProduct;
begin
  // create the product object
  MyProd:= TIWCGJQPayPalCartProduct.CreateSingle(nil,'MyProd');
  try
    MyProd.ItemName:= 'Product ABC';
    MyProd.Amount:= 9.35;
    MyProd.Quantity:= 2;
    MyProd.Shipping:= 3.35;
    MyProd.DiscountAmount:= 2;
    // add to cart
    IWCGJQPayPalCart1.AddToCart(MyProd.JSon);
  finally
    // free object
    FreeAndNil(MyProd);
  end;
end;