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/5ajtom15v1lx/plugin/5/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AQMxYQn0qhRC-Z2pM0sQjEEAZBAojOiqeb7fwLGQ2-3mro7QZjvLgGHe4LT4hTxusd0j4YjZ3DFJTZeY");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiY2Y3MWFhYzQ2YmUzYTFjYTJkZjgyMTM0NWYwYmM4ODFkZWE4MjAwZGEwOTlmYmI0ZTY1YjMwMDUyMjljNTlkMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMDY6Mjc6MTQuODE2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU83MGg1eHBZUVVWbFBwZE82aTBsQV9EcDBfQjBodmVmb3E1S20wYlZTNENWNVI2czAtUDBSTG1aRHdka2I1am5acEZHc0xFRTJOT3lLQTlRazl1cUZrUENRLWtRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "AQMxYQn0qhRC-Z2pM0sQjEEAZBAojOiqeb7fwLGQ2-3mro7QZjvLgGHe4LT4hTxusd0j4YjZ3DFJTZeY");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiY2Y3MWFhYzQ2YmUzYTFjYTJkZjgyMTM0NWYwYmM4ODFkZWE4MjAwZGEwOTlmYmI0ZTY1YjMwMDUyMjljNTlkMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDMtMjlUMDY6Mjc6MTQuODE2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU83MGg1eHBZUVVWbFBwZE82aTBsQV9EcDBfQjBodmVmb3E1S20wYlZTNENWNVI2czAtUDBSTG1aRHdka2I1am5acEZHc0xFRTJOT3lLQTlRazl1cUZrUENRLWtRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66066bd74be48', 'paylater', 'paypal', 'pill', 'white');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66066bd74be48', 'paylater', 'paypal', 'pill', 'white');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66066bd74be48', 'paypal', 'buynow', 'pill', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66066bd74be48', 'paypal', 'buynow', 'pill', 'gold');
});
}