-
Notifications
You must be signed in to change notification settings - Fork 8
Sale_Stop
Jacob McConnell edited this page Jun 11, 2014
·
1 revision
You must specify your API username and password when creating your 2checkout-node object (named ‘tco’ in these examples) before calling this method.
##Method
###stop
Use to stop a recurring lineitem.
####Arguments
- object - Object containing lineitem parameters. Parameters -> Stop Lineitem Recurring
- callback - Function to be called on success/error
####Returns
Result Object
####Example Usage:
args = {
lineitem_id: "4774380224"
};
tco.sales.stop(args, function (error, data) {
if (error) {
console.log(error);
} else {
console.log(data.response_code);
}
});
####Example Response:
{
"response_code": "OK",
"response_message": "Recurring billing stopped for lineitem"
}
Please feel free to contact 2Checkout directly for assistance with your integration.