(function() { let pkWidgetConfig = document.createAttribute("data-config"); pkWidgetConfig.value = JSON.stringify({"form": {"orderid": {"enabled": false}, "clientid": {"placeholder": ""}, "service_name": {"enabled": false}}, "title": "ПОДАРИТЬ СВИДАНИЕ С СОБОЙ", "serverUrl": "https://beautycabin.server.paykeeper.ru", "description": "Приобрести сертификат в Beauty Cabin"}); 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); })();