Language

2Checkout Documentation

Update

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

Method

Update

Use to update and existing product.

Arguments

  • TwoCheckoutConfig - Set your ApiUsername and ApiPassword.
  • ProductUpdateServiceOptions - Object composed of 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"