Skip to content

Option_Update

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

The Twocheckout_Option class provides methods to create, retrieve, update and delete options and will return an Array or JSON response depending on your format specification.

##Method

###update

Use to update an existing option.

####Arguments

  • array Array
  • Array containing update_option parameters in key => value pairs. Parameters -> API Update Option

####Returns

Returns an Array or JSON depending on your format specification.

####Example Usage:

Twocheckout::username('APIuser1817037');
Twocheckout::password('APIpass1817037');

$args = array(
    'option_id' => 4836975248,
    'option_name' => 'New Option Name'
);

$result = Twocheckout_Option::update($args);

####Example Response:

Array
(
    [response_code] => OK
    [response_message] => Option updated successfully
)
Clone this wiki locally