Skip to content

Sale_Comment

Jacob McConnell edited this page Jun 10, 2014 · 2 revisions

The Twocheckout_Sale class provides methods to retrieve and update sales and will return an Array or JSON response depending on your format specification.

##Method

###comment

Use to add a comment to a sale.

####Arguments

  • array Array
  • Array containing create_comment parameters in key => value pairs. Parameters -> API Create Comment

####Returns

Returns an Array or JSON depending on your format specification.

####Example Usage:

Twocheckout::username('APIuser1817037');
Twocheckout::password('APIpass1817037');

$args = array(
    'sale_id' => 4837725728,
    'sale_comment' => 'Your order will be shipped soon.',
    'cc_customer' => 1
);

$result = Twocheckout_Sale::comment($args);

####Example Response:

Array
(
    [response_code] => OK
    [response_message] => Created comment successfully.
)
Clone this wiki locally