Language

2Checkout Documentation

Refund

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

refund

Use to attempt to issue a full or partial refund.

Arguments

Returns

Returns an Array or JSON depending on your format specification.

Example Usage:

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

$args = array(
    'sale_id' => 4753371371,
    'category' => 1,
    'comment' => 'Order never sent.'
);

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

Example Response:

Array
(
    [response_code] => OK
    [response_message] => refund added to invoice
)