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/l15fxo25pv7b/plugin/22/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AQRHEFTQKZjFmTAHnkvR-gJmDYiW5ZxZev0rqYYyTHGM_7BW-WoWFvpIp5coJ0fYLhyjwmmc7NOyjru-");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZGMzNDBiMWE4YWI4M2U0ODY3ODI0NThiYjRkZTZlYWE0MzI2ZTUwNGVhZDAyNjZiNTdkN2ZjYzEwM2IxOTU0M3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDUtMjdUMTY6MTk6MjguNzM3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU93aEdFX21ZZzBFQzkxQm1kak56Uk41bndxaklaUE1Ib0tGcUg5eUstTjV1b2xQTm9lWFJ0WEdsejFFQXNKOVp4ZG8ybUF4U1V6LU14MjJpc09IZFYza3NGa0V3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6290fa106135e', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6290fa106135e', 'paypal', 'buynow', 'rect', 'gold');
});
}