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/nbjh8byx0tph/plugin/13/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATdwRoUMk0ZMbR9mUAAT6sgPg6x3KL6dF_tnd5wWSavS1rFHEMqOMvlIm6vSiqLptMKQbDTQcd1YinKK");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjc0MzAwZjgyYzYxYjc1M2E2OGJjYzJhZTM5M2ExNjJhM2M3MTNiYTcyMDYzNDYxODNlYzI1MjhjNGI4NDgzOHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDktMjBUMDc6MzI6MDMuODY5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU43V2ExQ2xwZ0FITjBJaFhEeEpZVmJXVzk2WHdyX1JYVGVNdzJ4VVk2X0FCVE40ZVBEMEZpNUdWWm1ETHd2VmtFQlRyTlhrZk5wZ2E4X3lhV2R1U3paMU9kZ2lnIn19");
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", "ATdwRoUMk0ZMbR9mUAAT6sgPg6x3KL6dF_tnd5wWSavS1rFHEMqOMvlIm6vSiqLptMKQbDTQcd1YinKK");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjc0MzAwZjgyYzYxYjc1M2E2OGJjYzJhZTM5M2ExNjJhM2M3MTNiYTcyMDYzNDYxODNlYzI1MjhjNGI4NDgzOHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDktMjBUMDc6MzI6MDMuODY5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU43V2ExQ2xwZ0FITjBJaFhEeEpZVmJXVzk2WHdyX1JYVGVNdzJ4VVk2X0FCVE40ZVBEMEZpNUdWWm1ETHd2VmtFQlRyTlhrZk5wZ2E4X3lhV2R1U3paMU9kZ2lnIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('650aa0e82b1d9', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('650aa0e82b1d9', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('650aa0e82b1d9', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('650aa0e82b1d9', 'paypal', 'buynow', 'rect', 'gold');
});
}