Skip to content

Commit

Permalink
Merge pull request #5 from jmcconnell91/master
Browse files Browse the repository at this point in the history
State Cancelled
  • Loading branch information
Craig Christenson committed Jul 17, 2014
2 parents a285c4b + 17a3ee7 commit 13785d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/code/local/Twocheckout/Api/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function issue_creditmemo_refund(Varien_Object $payment) {

try {
$response = Twocheckout_Sale::refund($data);
$order->setState(Mage_Sales_Model_Order::STATE_CANCELED, true)->save();
$order->addStatusHistoryComment($response["response_message"]);
$order->save();
} catch (Twocheckout_Error $e) {
Expand Down

0 comments on commit 13785d1

Please sign in to comment.