(function() { let pkWidgetConfig = document.createAttribute("data-config"); pkWidgetConfig.value = JSON.stringify({"description":"Для оформления заказа проверьте ваши данные","serverUrl":"https://declarationfit.server.paykeeper.ru","form":{"orderid":{"enabled":false},"clientid":{"required":true},"client_phone":{"required":true},"client_email":{"required":true},"service_name":{"enabled":false},"sum":{"placeholder":"5990"}}}); let div = document.createElement("div"); div.setAttribute("id", "pk-paywidget"); document.getElementsByTagName("body")[0].appendChild(div); document.getElementById("pk-paywidget").setAttributeNode(pkWidgetConfig); let script = document.createElement("script"); script.setAttribute("src", "https://widgets.paykeeper.ru/paywidget/stabile/v2/paywidget.js"); script.setAttribute("type", "text/javascript"); script.setAttribute("async", "true"); document.getElementsByTagName("head")[0].appendChild(script); script = document.createElement("link"); script.setAttribute("rel", "stylesheet"); script.setAttribute("type", "text/css"); script.setAttribute("href", "https://widgets.paykeeper.ru/paywidget/stabile/v2/paywidget.css"); document.getElementsByTagName("head")[0].appendChild(script); })();