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/t4m57w9r2qfo/plugin/6/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AVZN1UJV4F3F3iBuENgbpfKnIoaFb7ubu5kGdBzTHoxIgXzmCYP9cHAaptxgDGY7YoxMGLxXI_BEhPxC");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNjdkMjhmMzc4YjFiOTMwMmNkM2I3Mzg5NjE2ZWExMWNkY2NmYTU3Yzk5YjNmYzdmOTdkNjg0NWE4OWRhMmE3Y3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMTItMTRUMTY6MTg6MzguODU0WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU42ZkFKMW9KVDJUbmxDZXBvR29vUl9RcEI3U2hKalRpeUlmMkVPb2U0QmRtbmRJNW9NTXUySF80eE80V2JkTzdyNWRtS3lqWUhMVVp5SFhEdmR2Q3hKdnFyWHN3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6399fd19bb233', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6399fd19bb233', 'paypal', 'buynow', 'rect', 'gold');
});
}