Language

2Checkout Documentation

Comment

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 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.
)