// use direct paypal var SWITCH_CURRENCY_EUR_RATE = 0; var gCURRENCY = "USD"; var gPAYPAL_DONE = 0; var gDISCOUNT = 0; //if (window.location.href.indexOf("NOVEMBER") != -1) gDISCOUNT = 1; window.onscroll = function() { if (gPAYPAL_DONE) return; gPAYPAL_DONE = 1; AttachScript("https://www.paypal.com/sdk/js?client-id=AYpHcIgHz3FoSZFxJoJu7GpNGyXrkEtlwqpTXPY4BsMntcs0gfhyBmozOIwzvVzaUSEasO63YGrzS83E¤cy=USD"); }; function work_it() { UpdateInfoOnClick("commercialw_75", "commercialw_75_link", "Kon-Boot Commercial License", 1, 75); UpdateInfoOnClick("commercialm_75", "commercialm_75_link", "Kon-Boot for Mac Commercial License", 3, 75); UpdateInfoOnClick("commercial_140", "commercial_140_link", "Kon-Boot 2in1 Commercial License", 5, 140); //EU_CLIENT = 1; if (EU_CLIENT == 1) { UpdateInfoOnClick("personalw_15", "personalw_15_link", "[EU] Kon-Boot Personal License", 0, 27); UpdateInfoOnClick("personalm_15", "personalm_15_link", "[EU] Kon-Boot for Mac Personal License", 2, 27); UpdateInfoOnClick("personal_26", "personal_26_link", "[EU] Kon-Boot 2in1 Personal License", 4, 54); } else { UpdateInfoOnClick("personalw_15", "personalw_15_link", "Kon-Boot Personal License", 0, 25); UpdateInfoOnClick("personalm_15", "personalm_15_link", "Kon-Boot for Mac Personal License", 2, 25); UpdateInfoOnClick("personal_26", "personal_26_link", "Kon-Boot 2in1 Personal License", 4, 50); } } function AttachScript(src) { var script = document.createElement("script"); script.setAttribute("src", src); document.head.appendChild(script); script.addEventListener("load", () => { work_it(); }) } function UpdateInfoOnClick(idText, idLink, ProductName, ProductNumber, ProductPrice) { var MagicID = "ID_52.15.59.163_HuJdwa96H49V6_662f568faee33"; var ReturnPageURL = "https://kon-boot.com/paypal/success_new.html"; var url_url = window.location.href; var url_url2 = url_url.replace("https://", ""); var extra = encodeURI("?FullURL=" + url_url2 + "&ProductName=" + ProductName + "&ProductNumber=" + ProductNumber + "&ProductPrice=" + ProductPrice + "&MagicID=" + MagicID); var newReturnPageURL = ReturnPageURL + extra; var pbutton_clean = idLink + "_pbutton"; var pbutton = "#" + pbutton_clean; // remove image, add paypal button var e = document.getElementById(idLink); e.innerHTML = "
"; var oldProductPrice = ProductPrice; try { if ((gDISCOUNT == 1) && ((ProductNumber != 2) && (ProductNumber != 3))) { ProductPrice = Math.ceil(ProductPrice * 0.75); if (ProductPrice >= 98) ProductPrice = 100; var dElem = document.getElementById(idText + "_discount"); dElem.innerHTML = "($" + oldProductPrice + ")
-25% OFF BLACKFRIDAY(PAYPAL PAYMENTS ONLY)"; } } catch(err) { } try { if (idText != 0) { var text_elem = document.getElementById(idText); text_elem.innerHTML = "$" + ProductPrice; if ((gDISCOUNT == 1) && ((ProductNumber != 2) && (ProductNumber != 3))) text_elem.innerHTML = text_elem.innerHTML + "($" + oldProductPrice + ")
-25% OFF BLACKFRIDAY

(DISCOUNT FOR PAYPAL/CC PAYMENTS ONLY)

"; } } catch(err) { } // dear mr. hacker prices are later verified, so yes we know you can modify them here paypal.Buttons({ upgradeLSAT: true, onClick: function() { if ((ProductNumber == 2) || (ProductNumber == 3)) { document.location = "https://kon-boot.com/paypal/stripe/"; } //if ((window.location.href.indexOf("de") != -1) || (window.location.href.indexOf("fr") != -1) || (window.location.href.indexOf("it") != -1) || (window.location.href.indexOf("es") != -1)) { if ((ProductNumber == 0) || (ProductNumber == 4)) { document.location = "https://kon-boot.com/paypal/stripe/"; } } }, createOrder: function(data, actions) { SendGoogleEvent(ProductName, ProductNumber, ProductPrice, MagicID); return actions.order.create({ purchase_units: [{ reference_id: "52.15.59.163_HuJdwa96H49V6", custom_id: "52.15.59.163_HuJdwa96H49V6", amount: { value: ProductPrice, currency_code:"USD", breakdown: { item_total: { currency_code: "USD", value: ProductPrice } } }, items: [ { name: ProductName, description: "52.15.59.163_HuJdwa96H49V6", sku: ProductNumber, unit_amount: { currency_code: "USD", value: ProductPrice }, quantity: "1" }], }], application_context: { shipping_preference: "NO_SHIPPING" } }); }, onShippingChange: function(data,actions){ return actions.resolve(); }, // Finalize the transaction onApprove: function(data, actions) { return actions.order.capture().then(function(details) { window.location.href = newReturnPageURL; }) .catch(err => console.log(err)); }, onError: ( error ) => { console.log("Error: " + error); alert("ERROR: UNABLE TO PROCESS THIS PAYMENT\r\n"); }, }).render(pbutton); } function UpdateInfo2(idLink, LinkUrl) { try { var link_elem = document.getElementById(idLink); link_elem.href = LinkUrl; link_elem.onclick = function() { document.location = LinkUrl; } } catch(err) { } } function IsCookieSet(cname) { var name = cname + "="; var ca = document.cookie.split(";"); for(var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == " ") { c = c.substring(1); } if (c.indexOf(name) == 0) { return c.substring(name.length, c.length); } } return ""; } function IsSetCookiePurchase(cookieName, cookieValue) { if (IsCookieSet(cookieName)) return 1; var now = new Date(); var time = now.getTime(); time += 3600 * 1000; now.setTime(time); document.cookie = cookieName + "=" + cookieValue + "; expires=" + now.toUTCString() + "; path=/"; return 0; } function SendGoogleEvent(ProductName, ProductNumber, ProductPrice, MagicID) { if (IsSetCookiePurchase("purchaseCookie", 1) == 1) { return; } var url = document.location; var hostname = (new URL(url)).hostname; try { gtag("event", "begin_checkout", { "value": ProductPrice, "currency": gCURRENCY, "affiliation": hostname, "tax": 0.0, "shipping": 0, "items": [ { "id": ProductNumber, "name": ProductName, "category": "Software", "list_position": ProductNumber, "quantity": 1, "price": ProductPrice } ] }); } catch(e) { } } var r3 = Math.random()<0.5?0:1; if (!botCheck()) { var headers = document.getElementsByTagName('h6'); for (i=0; i
FOR € EURO PAYMENTS WITHOUT PAYPAL CLICK HERE (INSTANT DELIVERY)
'; } else { headers[i].innerHTML = txt + '

PURCHASE WITHOUT PAYPAL (INSTANT DELIVERY)
'; } } } } function botCheck(){ var botPattern = "(googlebot\/|Googlebot-Mobile|Googlebot-Image|Google favicon|Mediapartners-Google|bingbot|slurp|java|wget|curl|Commons-HttpClient|Python-urllib|libwww)"; var re = new RegExp(botPattern, "i"); var userAgent = navigator.userAgent; if (re.test(userAgent)) { return true; }else{ return false; } }