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/tlmvhcnagxwu/plugin/26/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ARMOXUHhevrZA6Ua6wemQ92w1J2883kdoLjn2er_sWY7TlPD7PGGbaZLkU07MclTpzLoQsS7C7riR6li");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYTUyZjRlM2ZjNDAxNTdhYjkzZDFhZjMzYzEyMTQxYTgwNWRmYmY5NTg1MjU4YjljZTM0ZWM3OTI2OTRlNTIwZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMTItMDhUMTk6NTE6MjAuOTc5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1kMldMZG9wVDFOVUkyeXR2aGtBX0poTEdXN0ZUNHpHVGlEZDNObU5GU1U2a09Cb0huQUxTZW9wN25lb0R6eVdJa25RempWTk5IQ3VUVVFKemZXZVp3dVdZQ3F3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6573798573196', 'paypal', 'buynow', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6573798573196', 'paypal', 'buynow', 'rect', 'blue');
});
}