if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/l1ya87slllbw/plugin/13/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZL3Ks8cubZhzZYvsxB_9vif047Bg6EjC9E9SPquLzlHFFlslyTBtGAvUgBApDo4sL84qKOY-NdEFDkS");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYmNhYmI4MWQ2NjVhYzY5ODg0NDljYzIzZDM1YjIyMDM2ZDM1ZDQ4ZDRkZGFmZGY5ZDZjZjA2NWY3YjFlNzg1MHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjVUMTE6Mjg6NTIuODE0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9oM25TSXB1eVZibms4UHhRTG1FM0hmZDZaZjlEa2dhY1h0QUJtanVrRGktaE9HMWxJWnJYNVF4Wkl6c3dRTlFHeHgwU0QtN1R1ejcxaWVWTW5kZ1FBQ2Q1aVpBIn19");
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", "AZL3Ks8cubZhzZYvsxB_9vif047Bg6EjC9E9SPquLzlHFFlslyTBtGAvUgBApDo4sL84qKOY-NdEFDkS");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYmNhYmI4MWQ2NjVhYzY5ODg0NDljYzIzZDM1YjIyMDM2ZDM1ZDQ4ZDRkZGFmZGY5ZDZjZjA2NWY3YjFlNzg1MHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjVUMTE6Mjg6NTIuODE0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9oM25TSXB1eVZibms4UHhRTG1FM0hmZDZaZjlEa2dhY1h0QUJtanVrRGktaE9HMWxJWnJYNVF4Wkl6c3dRTlFHeHgwU0QtN1R1ejcxaWVWTW5kZ1FBQ2Q1aVpBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66a236f500a88', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a236f500a88', 'paypal', 'buynow', 'rect', 'gold');
});
}