Skip to content

Option_Delete

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

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

##Method

###delete

Use to delete an existing option.

####Arguments

  • TwoCheckoutConfig - Set your ApiUsername and ApiPassword.
  • OptionDeleteServiceOptions Object containing delete option attributes

####Returns

Returns a TwocheckoutResponse object.

####Example Usage:

var ServiceObject = new OptionService();
var ArgsObject = new OptionDeleteServiceOptions();
ArgsObject.option_id = option_id;

var result = ServiceObject.Delete(ArgsObject);

####Example Response:

{TwoCheckout.TwoCheckoutResponse}
  response_code: "OK"
  response_message: "Option deleted successfully"
Clone this wiki locally