{"id":1393,"date":"2026-02-18T22:47:37","date_gmt":"2026-02-18T22:47:37","guid":{"rendered":"https:\/\/buy-super.com\/?page_id=1393"},"modified":"2026-02-18T23:02:23","modified_gmt":"2026-02-18T23:02:23","slug":"pagina-attesa-minimotosega-hu","status":"publish","type":"page","link":"https:\/\/buy-super.com\/index.php\/pagina-attesa-minimotosega-hu\/","title":{"rendered":"pagina-attesa-minimotosega-hu"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"1393\" class=\"elementor elementor-1393\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-bf88e55 e-flex e-con-boxed e-con e-parent\" data-id=\"bf88e55\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-626d3be elementor-widget elementor-widget-html\" data-id=\"626d3be\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div style=\"text-align:center; padding:80px 20px;\">\r\n    <div class=\"custom-loader\"><\/div>\r\n    <h2 id=\"wait-msg\">Feldolgoz\u00e1s folyamatban...<\/h2>\r\n    <p>Online ellen\u0151rizz\u00fck az adatait, k\u00e9rj\u00fck, ne z\u00e1rja be ezt az oldalt.<\/p>\r\n<\/div>\r\n\r\n<script>\r\nasync function verifyLead() {\r\n    const urlParams = new URLSearchParams(window.location.search);\r\n    const sid = urlParams.get('sid');\r\n    const clickid = urlParams.get('clickid');\r\n    \r\n    if (!sid) return;\r\n\r\n    try {\r\n        const response = await fetch(`https:\/\/buy-super.com\/check-italiadrop.php?sid=${sid}`);\r\n        const data = await response.json();\r\n\r\n        \/\/ 1. Caso PENDING: Redirect a Thank You Page con parametri\r\n        if (data.status === 'Pending') {\r\n            clearInterval(interval);\r\n            let typUrl = new URL(\"https:\/\/buy-super.com\/index.php\/motosega-ungheria-thank-you\/\");\r\n            if (sid) typUrl.searchParams.append('sid', sid);\r\n            if (clickid) typUrl.searchParams.append('clickid', clickid);\r\n            \r\n            window.location.href = typUrl.toString();\r\n\r\n        \/\/ 2. Caso APPROVED\/CANCELED: Redirect a Double Order SENZA parametri aggiuntivi\r\n        } else if (data.status === 'Approved' || data.status === 'Canceled') {\r\n            clearInterval(interval);\r\n            window.location.href = \"https:\/\/buy-super.com\/index.php\/double-order\/\";\r\n        }\r\n    } catch (e) { \r\n        console.error(\"Errore polling:\", e); \r\n    }\r\n}\r\n\r\n\/\/ Controlla ogni 6 secondi per un massimo di 20 tentativi\r\nlet attempts = 0;\r\nconst interval = setInterval(() => {\r\n    verifyLead();\r\n    attempts++;\r\n    if (attempts >= 20) {\r\n        clearInterval(interval);\r\n        \r\n        \/\/ 3. Caso TIMEOUT: Redirect a Thank You Page con parametri (come fallback)\r\n        const urlParams = new URLSearchParams(window.location.search);\r\n        const sid = urlParams.get('sid');\r\n        const clickid = urlParams.get('clickid');\r\n        \r\n        let timeoutUrl = new URL(\"https:\/\/buy-super.com\/index.php\/motosega-ungheria-thank-you\/\");\r\n        timeoutUrl.searchParams.append('timeout', '1');\r\n        if (sid) timeoutUrl.searchParams.append('sid', sid);\r\n        if (clickid) timeoutUrl.searchParams.append('clickid', clickid);\r\n        \r\n        window.location.href = timeoutUrl.toString();\r\n    }\r\n}, 6000);\r\n<\/script>\r\n\r\n<style>\r\n.custom-loader { border: 6px solid #f3f3f3; border-top: 6px solid #ff6b6b; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 0 auto 15px; }\r\n@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }\r\n<\/style>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Feldolgoz\u00e1s folyamatban&#8230; Online ellen\u0151rizz\u00fck az adatait, k\u00e9rj\u00fck, ne z\u00e1rja be ezt az oldalt.<\/p>\n","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_canvas","meta":{"footnotes":""},"class_list":["post-1393","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/buy-super.com\/index.php\/wp-json\/wp\/v2\/pages\/1393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buy-super.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/buy-super.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/buy-super.com\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/buy-super.com\/index.php\/wp-json\/wp\/v2\/comments?post=1393"}],"version-history":[{"count":7,"href":"https:\/\/buy-super.com\/index.php\/wp-json\/wp\/v2\/pages\/1393\/revisions"}],"predecessor-version":[{"id":1401,"href":"https:\/\/buy-super.com\/index.php\/wp-json\/wp\/v2\/pages\/1393\/revisions\/1401"}],"wp:attachment":[{"href":"https:\/\/buy-super.com\/index.php\/wp-json\/wp\/v2\/media?parent=1393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}