-
Notifications
You must be signed in to change notification settings - Fork 66
Product_Update
Jacob McConnell edited this page Jun 10, 2014
·
2 revisions
The Twocheckout_Product class provides methods to create, retrieve, update and delete products and will return an Array or JSON response depending on your format specification. ##Method
###update
Use to update an existing product.
####Arguments
- array Array
- Array containing update_product parameters in key => value pairs. Parameters -> API Update Product
####Returns
Returns an Array or JSON depending on your format specification.
####Example Usage:
Twocheckout::username('APIuser1817037');
Twocheckout::password('APIpass1817037');
$args = array(
'product_id' => 4838125968,
'name' => 'New Product Name'
);
$result = Twocheckout_Product::update($args);
####Example Response:
Array
(
[assigned_product_id] => 445
[product_id] => 4838125968
[response_code] => OK
[response_message] => Product successfully updated
)
Please feel free to contact 2Checkout directly for assistance with your integration.