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/dm2cz92gve1m/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ARhK_t_FXO6K2QgBm54XNU-18ugtqlGvPYqvDH27OmT6EpFVufmMk3p4u91Plub5l_i-1_6jpT04SX99");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWRmN2RlYWQ0MGRhMDZiY2IwZmE4OGYyMzJhYzU0MTFlY2IxNGEzMWM3MWNiZThiZTk2M2U1MmVmMjQ5YmQyZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMTlUMDg6MjA6NTUuMzU2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5VRk9jZnM1aUxrb3AtYkdHekx4VkppUklOZnl0YkpiR0EwTHpTX1RSWUdHV25Za3JNMXZkazk5OU1QX01uODlyUDM1QnRDcUtTN1h5djhvVUxVSU85dTQ1YnBBIn19");
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", "ARhK_t_FXO6K2QgBm54XNU-18ugtqlGvPYqvDH27OmT6EpFVufmMk3p4u91Plub5l_i-1_6jpT04SX99");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYWRmN2RlYWQ0MGRhMDZiY2IwZmE4OGYyMzJhYzU0MTFlY2IxNGEzMWM3MWNiZThiZTk2M2U1MmVmMjQ5YmQyZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMTlUMDg6MjA6NTUuMzU2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5VRk9jZnM1aUxrb3AtYkdHekx4VkppUklOZnl0YkpiR0EwTHpTX1RSWUdHV25Za3JNMXZkazk5OU1QX01uODlyUDM1QnRDcUtTN1h5djhvVUxVSU85dTQ1YnBBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('646733f8e47b1', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('646733f8e47b1', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('646733f8e47b1', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('646733f8e47b1', 'paypal', 'buynow', 'rect', 'gold');
});
}