Language

2Checkout Documentation

Stop

The SaleService class provides methods to retrieve and update sales.

Method

Stop

Use to stop one or all active recurring lineitems on a sale.

Arguments

  • TwoCheckoutConfig - Set your ApiUsername and ApiPassword.
  • SaleListServiceOptions - Object containing sale_id or lineitem_id.

Returns

Returns result as a TwocheckoutResponse object.

Example Usage:

var ServiceObject = new SaleService();
var ArgsObject = new SaleStopServiceOptions();
ArgsObject.sale_id = sale_id;

var result = ServiceObject.Stop(ArgsObject);

Example Response:

{TwoCheckout.TwoCheckoutResponse}
  response_code: "OK"
  response_message: "4831145902"