Skip to content

Product_Update

Jacob McConnell edited this page Jun 6, 2014 · 2 revisions

The ProductService class provides methods to create, retrieve, update and delete options.

##Method

###Update

Use to update an existing product.

####Arguments

  • TwoCheckoutConfig - Set your ApiUsername and ApiPassword.
  • ProductUpdateServiceOptions Object containing update product attributes

####Returns

Returns a TwocheckoutResponse object.

####Example Usage:

var ServiceObject = new ProductService();
var ArgsObject = new ProductUpdateServiceOptions();
ArgsObject.approved_url = "http://www.example.com/update";
ArgsObject.description = "Test123";
ArgsObject.product_id = product_id;

var result = ServiceObject.Update(ArgsObject);

####Example Response:

{TwoCheckout.TwoCheckoutResponse}
  response_code: "OK"
  response_message: "Product successfully updated"
  product_id: "4775360345"
  assigned_product_id: "22"

Clone this wiki locally