false ]; $client = $this->clientFactory->create($store_id); $responseParser = $client->cancelOrderReference($data); if ($responseParser->response['Status'] == 200) { // Gateway expects response to be in form of array $response['status'] = true; } else { $log['error'] = __('VoidClient - Unable to Close/Cancel order - bad status response.'); $this->logger->debug($log); } return $response; } }