Language

2Checkout Documentation

Update

You must specify your API username and password using the Twocheckout.apiusername & Twocheckout.apipassword class variables before calling a method in this class.

Method

update

Use to update and existing product.

Arguments

  • None

Returns

Returns a TwocheckoutResponse object.

Example Usage:

Product product = TwocheckoutProduct.retrieve(product_id);
product.setName("test");
TwocheckoutResponse result = product.update();

Example Response (toJson):

{
   "assigned_product_id" : "19",
   "product_id" : "4774376165",
   "response_code" : "OK",
   "response_message" : "Product successfully updated"
}