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/s8ix3rhxk064/plugin/25/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATpe9qgXm5iuVKpCWZp_1afL4_SCedg8AAdsBmzJKBCqa3Ljy1xg8H9AEIEXdc8rNJdmb7zHLptDi9Rs");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGJkZmI2YTBmYjhmNmIxYzI5MDVhZTY3ZDk2YTI4ZGEwZjU0ZTBkYThiZDAyM2Y0MzA3YWI2YTU1NDNiZGQxZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjNUMTg6MjY6MTMuMDM5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5MNlVxNXR6RkNrYzluOF9kOHBTakRXVVpuTE5qaTlrSlo3cEFyWDREd2o0U3JtUGZubC1hV2JVWTl1ZE0wd1oyODNTMS1xUEhsMGstVHNCN1pTRkJzT2NhdWJBIn19");
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", "ATpe9qgXm5iuVKpCWZp_1afL4_SCedg8AAdsBmzJKBCqa3Ljy1xg8H9AEIEXdc8rNJdmb7zHLptDi9Rs");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNGJkZmI2YTBmYjhmNmIxYzI5MDVhZTY3ZDk2YTI4ZGEwZjU0ZTBkYThiZDAyM2Y0MzA3YWI2YTU1NDNiZGQxZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjNUMTg6MjY6MTMuMDM5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5MNlVxNXR6RkNrYzluOF9kOHBTakRXVVpuTE5qaTlrSlo3cEFyWDREd2o0U3JtUGZubC1hV2JVWTl1ZE0wd1oyODNTMS1xUEhsMGstVHNCN1pTRkJzT2NhdWJBIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('641c9f30b8585', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('641c9f30b8585', 'paypal', 'buynow', 'rect', 'gold');
});
}