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/kyx77bbyb2ry/plugin/3/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AWImiyq667Ax74-uFtRVO1ZZU23CapZWLyH-nHYyARSGxCMEFQ4AV2M-jBpau5Iu0dTYeApEWKX_blx9");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjI1ZDI2MmM5MGM3MmU3NDJmNmI2MDJlZTNlZDVmNjQ0ODFmZWQ2ZDViNTAxNGI3MTdkMzUwM2JkYWI1NzQxMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDRUMDc6NTE6MDAuMjYxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5NSFpkZmp3ZWxweHo0enZfek1KOW5tU0ZraldfRklTekg1MVloVERSOENTYnZJSWpSd2tOdHhSTnVrRkVmc2c2Q3VKYzVzTUM3SVdDT0YtQUFKTDE2YVhPNVNRIn19");
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", "AWImiyq667Ax74-uFtRVO1ZZU23CapZWLyH-nHYyARSGxCMEFQ4AV2M-jBpau5Iu0dTYeApEWKX_blx9");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjI1ZDI2MmM5MGM3MmU3NDJmNmI2MDJlZTNlZDVmNjQ0ODFmZWQ2ZDViNTAxNGI3MTdkMzUwM2JkYWI1NzQxMnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDRUMDc6NTE6MDAuMjYxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5NSFpkZmp3ZWxweHo0enZfek1KOW5tU0ZraldfRklTekg1MVloVERSOENTYnZJSWpSd2tOdHhSTnVrRkVmc2c2Q3VKYzVzTUM3SVdDT0YtQUFKTDE2YVhPNVNRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647c42b0ae84d', 'paypal', 'buynow', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647c42b0ae84d', 'paypal', 'buynow', 'rect', 'blue');
});
}