TIWCGJQCustomPayPalCart.AddToCart(ISuperObject) Method
Add new item to cart
public procedure AddToCart(Data: ISuperObject); overload;
Parameters
- Data
- Type: ISuperObject
Key / value pair object of parameters and their value
uses IWCGJSSuperObject; var JSonObj: ISuperObject; begin // create ISuperObject JSonObj:= SO(); // Add product name JSonObj.S['item_name']:= 'Product Test'; // Add product amount JSonObj.D['amount']:= 5.50; // Add curreny code JSonObj.S['currency_code']:= 'EUR'; // Add to cart IWCGJQPayPalCart1.AddToCart(JSonObj); end;