Skip to content

Commit

Permalink
fix: Set fraudulent status orders to configured decision for fail
Browse files Browse the repository at this point in the history
  • Loading branch information
soleilcot committed Aug 31, 2023
1 parent a765de3 commit aa92ad8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Order/Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ public function getCustomOrderStatus($response, $storeId = null)
{
if (isset($response['body']['decision'])) {
$statusName = $response['body']['decision'];
if ($statusName == 'fraudulent') {
$statusName = 'fail';
}
}

if (isset($response['code'])) {
Expand Down

0 comments on commit aa92ad8

Please sign in to comment.