Skip to content

Option_Delete

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

###delete

Use to delete an existing option.

####Arguments

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

####Returns

Returns an Array or JSON object depending on your specification.

####Example Usage:

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

$args = array(
    'option_id' => 4836976646
);
$result = Twocheckout_Option::delete($args);

####Example Response:

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