Skip to content

Commit

Permalink
fix: remove fraudulent condition since it is not a valid decision
Browse files Browse the repository at this point in the history
  • Loading branch information
soleilcot committed Jun 15, 2023
1 parent 903b763 commit 54084c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Observer/SalesOrderPaymentPlaceEnd.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public function execute(\Magento\Framework\Event\Observer $observer)

// If order fails screening and auto-cancel is enabled in admin config, cancel the order
if ($this->configHelper->getAutoCancel($storeId)) {
if (isset($nofraudDecision) && ($nofraudDecision == 'fail' || $nofraudDecision == 'fraudulent')) {
if (isset($nofraudDecision) && $nofraudDecision == 'fail') {
$this->orderProcessor->handleAutocancel($order, $nofraudDecision);
}
}
Expand Down

0 comments on commit 54084c0

Please sign in to comment.