if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn02.plentymarkets.com/0zef0kd5dbv8/plugin/2/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AUcKPwY3sQTidz4ro72hrZXQB2XSOFHKMMW3DUsWcWLZiZP4y1ffLG9HyimN2xP9bWYTNv55b1vrs4go");
script.setAttribute("data-currency", "DKK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjcyMjY3ZWM3NmZmYmZhZWZlZDIzZjAyM2MwMTY3YjViYTExOTM3ZWQ5N2I3MjA5YTZiOTEwNjExN2UwZWU0YnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMjFUMTA6MzY6MDEuODk2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU10TFpTOXZsSmp1aHU0RnY0QzJOOEFpN3FyME82N3FTbzlqX2ZZWFlIM0c3c0h4alMzRDJWN0xxT3R5TTY1Z0hNMFZpc2YwR2ptM0xpeDB0RF80R1VOUUZ4Wk9nIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "pl_PL");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AUcKPwY3sQTidz4ro72hrZXQB2XSOFHKMMW3DUsWcWLZiZP4y1ffLG9HyimN2xP9bWYTNv55b1vrs4go");
script.setAttribute("data-currency", "DKK");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjcyMjY3ZWM3NmZmYmZhZWZlZDIzZjAyM2MwMTY3YjViYTExOTM3ZWQ5N2I3MjA5YTZiOTEwNjExN2UwZWU0YnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDUtMjFUMTA6MzY6MDEuODk2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU10TFpTOXZsSmp1aHU0RnY0QzJOOEFpN3FyME82N3FTbzlqX2ZZWFlIM0c3c0h4alMzRDJWN0xxT3R5TTY1Z0hNMFZpc2YwR2ptM0xpeDB0RF80R1VOUUZ4Wk9nIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "pl_PL");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('664c84efdaf51', 'card', 'buynow', 'rect', 'black');
});
} else {
renderPayPalButtons('664c84efdaf51', 'card', 'buynow', 'rect', 'black');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('664c84efdaf51', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('664c84efdaf51', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('664c84efdaf51', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('664c84efdaf51', 'paypal', 'buynow', 'rect', 'gold');
}