Language

2Checkout Documentation

Delete

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 composed of 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"