is_order_completed($data['orderId']); if($isCompleted){ $response['status'] = 'SUCCESS'; } return $response; } ?>