'success' => false,
'data' =>
$this->
Request()->
getParams(),
'message' =>
$namespace->
get('no_order_id_passed', 'No valid order id passed.'
),
]);
return;
} $modelManager =
$this->
get(ModelManager::
class);
$stateTranslator =
$this->
get(StateTranslatorService::
class);
$previousLocale =
$this->
getCurrentLocale();
foreach ($orders as &
$data) { $data['success'
] = false;
$data['errorMessage'
] =
$namespace->
get('no_order_id_passed', 'No valid order id passed.'
);
if (empty($data) ||
empty($data['id'
])) { continue;
} $order =
$modelManager->
find(Order::
class,
$data['id'
]);
if (!
$order) {