Skip to content

Commit

Permalink
Merge pull request #10 from Affirm/hotfix-order-cancel
Browse files Browse the repository at this point in the history
Remove order cancel on local exception to avoid unwanted cancelation of orders where the exceptions occur due to constraints not related to Affirm.
  • Loading branch information
taehyunlim authored Oct 27, 2021
2 parents 976a343 + a516d29 commit f4e4470
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Controller/Payment/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,6 @@ public function execute()
$e,
$e->getMessage()
);
$_order->setState(\Magento\Sales\Model\Order::STATE_CANCELED)
->setStatus(\Magento\Sales\Model\Order::STATE_CANCELED);
$_order->addCommentToStatusHistory($e->getMessage());
$_order->save();

Expand Down

0 comments on commit f4e4470

Please sign in to comment.