'rejected', 'error' => 'empty_body']); } $result = handle_shopify_webhook($pdo, $env, $rawPayload, $_SERVER); json_response($result['http_status'], $result['payload']); } catch (Throwable) { json_response(500, ['status' => 'failed', 'error' => 'technical_error']); }