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/wxb1205wm6e0/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "Aa6MbjulOWu_fK-JI7YM6Pyfpoi6fBhUwWmnZRmWiqWE5OZ6088nWll5sx4a8OCElTn6eAEzhc3WDe9D");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNWM0YzdiMDFiY2UwMDI3M2Q5ZWVlYTMxOTU0Y2UzNDRjOGViMjAwOGRkYzRhYTNkM2RhMzM2MGM2NzVkMDE3OHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMTdUMDQ6MzM6MDQuMDc3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVA2MVp2NHVnWTVRTUdoSXlVV0tjeXA2cnVBZzloQ1lZZTA5STI5Z09DRjdMVjZLYjN6SEc5VHlTZmp6MXhMZWl1ZFlDR2J1RUNySDJLeTFheVFXd3BqUXpTTWx3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66974f9170e28', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66974f9170e28', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66974f9170e28', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66974f9170e28', 'paypal', 'buynow', 'rect', 'gold');
});
}