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/5uiv73pl00nr/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AfslQana4f4CQjHvRBnUc6vBJg5jgJuZFwM-SbrTiGKUAqB7MrxQv3QWFdQ6U1h7ogMDokT1DNBzRxMw");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiN2YyYmYxMTU1OWY5ZmIyNTlkOTRjNzE3N2JkZjI0YTMwMDQ0ZjRiYWVmZjYzZGE1YWQ1MGU3NzRmZmVhYTk4MXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjZUMjE6NTk6MjQuMTAzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1ieDdiVW91dWdrZDg3UzQ4RDZEdms3TDdUM2YtYjM5UjBRNGh4am5VVGNabTdCV0hUTl81MjhtczRmd2V5dGtRSmZzbGd4Nmh6Zk54MF9oekp3TkZwNld3LVJRIn19");
script.setAttribute("data-user-id-token", "");
script.setAttribute("data-merchant-id", "W9YXR5JDPJVF6");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
script.setAttribute("sandbox", "");
script.setAttribute("googlePayComponent", 0);
script.setAttribute("applePayComponent", 0);
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.src = "https://cdn02.plentymarkets.com/5uiv73pl00nr/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AfslQana4f4CQjHvRBnUc6vBJg5jgJuZFwM-SbrTiGKUAqB7MrxQv3QWFdQ6U1h7ogMDokT1DNBzRxMw");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiN2YyYmYxMTU1OWY5ZmIyNTlkOTRjNzE3N2JkZjI0YTMwMDQ0ZjRiYWVmZjYzZGE1YWQ1MGU3NzRmZmVhYTk4MXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjZUMjE6NTk6MjQuMTAzWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1ieDdiVW91dWdrZDg3UzQ4RDZEdms3TDdUM2YtYjM5UjBRNGh4am5VVGNabTdCV0hUTl81MjhtczRmd2V5dGtRSmZzbGd4Nmh6Zk54MF9oekp3TkZwNld3LVJRIn19");
script.setAttribute("data-user-id-token", "");
script.setAttribute("data-merchant-id", "W9YXR5JDPJVF6");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
script.setAttribute("sandbox", "");
script.setAttribute("googlePayComponent", 0);
script.setAttribute("applePayComponent", 0);
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a426d0ab287', 'paylater', 'paypal', 'rect', 'gold');
});
} else {
renderPayPalButtons('66a426d0ab287', 'paylater', 'paypal', 'rect', 'gold');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a426d0ab287', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('66a426d0ab287', 'paypal', 'buynow', 'rect', 'gold');
}