Language

2Checkout Documentation

Comment

The SaleService class provides methods to retrieve and update sales.

Method

comment

Use to add a comment to a sale.

Arguments

  • TwoCheckoutConfig - Set your ApiUsername and ApiPassword.
  • SaleCommentServiceOptions - Object containing create comment parameters.

Returns

Returns a TwoCheckoutResponse object.

Example Usage:

var ServiceObject = new SaleService();
var ArgsObject = new SaleCommentServiceOptions();
ArgsObject.sale_id = sale_id;
ArgsObject.sale_comment = "Test";

var result = ServiceObject.Comment(ArgsObject);

Example Response:

{TwoCheckout.TwoCheckoutResponse}
  response_code: "OK"
  response_message: "Created comment successfully."