Language

2Checkout Documentation

Comment

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

Method

comment

Use to add a comment to a sale.

Arguments

  • hash Parameters

Returns

Returns a TwocheckoutResponse object.

Example Usage:

Sale sale = TwocheckoutSale.retrieve("4832772521");
HashMap params = new HashMap();
params.put("sale_comment", "test");

TwocheckoutResponse result = sale.comment(params);

Example Response (toJson):

{
   "response_code" : "OK",
   "response_message" : "Created comment successfully."
}