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/a3vutw53e7y6/plugin/4/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AV4X9y4Hcz8HxbM-yC37Ya33Xe6JDbFW1A6RBFB_NRFpzHiF1kRZ01dYqfjbHI5M1dWF-Ldw_n9WYE_p");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWQ5Y2JmMzEzZWU2M2E1ZGM0YWRmZTJjYzMxYTJhM2YxNDNhN2VmODQ4OTEzMWMwZmZlYzgxMzBkYjdjMWM5Y3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDgtMjBUMTY6MDY6MzMuOTM2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBLRTkwamtUZHEzT3VpaEY0STcxbkMwaF9HNmFhVDlSVjdFUDBYSWJPWDI4OVUzWUFpZElOQkNzUjl2MWhsOUtiZFhoQUxvWTRmVTlXQ3V2VTlnVEo1cFhrYlFnIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AV4X9y4Hcz8HxbM-yC37Ya33Xe6JDbFW1A6RBFB_NRFpzHiF1kRZ01dYqfjbHI5M1dWF-Ldw_n9WYE_p");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWQ5Y2JmMzEzZWU2M2E1ZGM0YWRmZTJjYzMxYTJhM2YxNDNhN2VmODQ4OTEzMWMwZmZlYzgxMzBkYjdjMWM5Y3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDgtMjBUMTY6MDY6MzMuOTM2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBLRTkwamtUZHEzT3VpaEY0STcxbkMwaF9HNmFhVDlSVjdFUDBYSWJPWDI4OVUzWUFpZElOQkNzUjl2MWhsOUtiZFhoQUxvWTRmVTlXQ3V2VTlnVEo1cFhrYlFnIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66c4c3a9a9981', 'card', 'buynow', 'pill', 'black');
});
} else {
renderPayPalButtons('66c4c3a9a9981', 'card', 'buynow', 'pill', 'black');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66c4c3a9a9981', 'paylater', 'paypal', 'pill', 'blue');
});
} else {
renderPayPalButtons('66c4c3a9a9981', 'paylater', 'paypal', 'pill', 'blue');
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66c4c3a9a9981', 'paypal', 'paypal', 'pill', 'blue');
});
} else {
renderPayPalButtons('66c4c3a9a9981', 'paypal', 'paypal', 'pill', 'blue');
}