Language

2Checkout Documentation

Stop

You must specify your API username and password using the Twocheckout.apiusername & Twocheckout.apipassword class variables before calling a method in this class.

Method

stop

Use to stop all active recurring lineitems on a sale. This method can also be called on an invoice or lineitem.

Arguments

  • None

Returns

Returns result as a TwocheckoutResponse object.

Example Usage:

Sale sale = TwocheckoutSale.retrieve("4832772521");
TwocheckoutResponse result = sale.stop();

Example Response (toJson):

{
  "response_code" : "OK",
  "response_message" : "4832771234,4832774567,4832767890"
}