<div id=”XS-pay2play-widget”></div> <script> var options = { access_token: “9upbu4RrjLChk8PgP42n5LqSmqANijKY”, theme : { foreground: “green”, background: “dark” }, lightbox: { height: “700px”, spinner: “round” }, target_element: “#XS-pay2play-widget” }; var s = document.createElement(“script”); s.type = “text/javascript”; s.async = true; s.src = “https://cdn.xsolla.net/embed/pay2play/2.3.0/widget.min.js”; s.addEventListener(“load”, function (e) { var widgetInstance = XPay2PlayWidget.create(options); }, false); var head = document.getElementsByTagName(“head”)[0]; head.appendChild(s); </script>
Code 2:
<div id=”XS-pay2play-widget”></div> <script> var options = { access_token: “9upbGoqnbonvXqyfgaBtsDcyWnv0FXEe”, theme : { foreground: “green”, background: “dark” }, lightbox: { height: “700px”, spinner: “round” }, target_element: “#XS-pay2play-widget” }; var s = document.createElement(“script”); s.type = “text/javascript”; s.async = true; s.src = “https://cdn.xsolla.net/embed/pay2play/2.3.0/widget.min.js”; s.addEventListener(“load”, function (e) { var widgetInstance = XPay2PlayWidget.create(options); }, false); var head = document.getElementsByTagName(“head”)[0]; head.appendChild(s); </script>