The ProductService class provides methods to create, retrieve, update and delete options.
Use to retrieve a Product object.
Returns a Product object.
var ServiceObject = new ProductService(); var ArgsObject = new ProductRetrieveServiceOptions(); ArgsObject.product_id = product_id; var result = ServiceObject.Retrieve(ArgsObject);
{TwoCheckout.Product} approved_url: null assigned_product_id: 3 categories: ... {TwoCheckout.Categories} category_id: 21 name: "Advice & Instruction" parent_id: 2 description: null parent_name: "Business Solutions & Office Products" commission: "0" commission_type: null description: "This is a test product!" duration: "Forever" handling: null images: ... long_description: null name: "Example Product" options: ... {TwoCheckout.Option} option_id: 4774403903 option_name: "Example Option" option_values: ... {TwoCheckout.OptionValues} option_value_id: 4774403906 option_value_name: "Test" option_value_surcharge: 1.00 pending_url: null price: 1.00 product_id: 4774388564 recurrence: "1 Month" startup_fee: "0.01" tangible: "0" vendor_id: 1817037 vendor_product_id: "example123" weight: null