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/r8m9nkyqi92x/plugin/54/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AX1rbmdVxz_QGAL9-llnUdzCm4LZBNYY85R4RTgE6q3VT2-s7j9r8ZQpCXgXDtX9BiacGU6sPPk9Rfva");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOTIxMTFiYjk3NDg1OWFhMDBkNWIyYThhMmUxNzQ0YzkzY2NlZGNhNWY4OThhZDMwYTJhMjFmY2RjOTRjM2Q1OHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDhUMDE6MDM6NDQuODg5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU13WWNUanZmOGF0eXhNTVN0N0o1R3NhM2dwNzBmV1NIdGFWMzRTNW5WeXhPWUNuOU5DUGtmZzVOSFE0ZGhqTmVzNnFHbFNUU0I5T3ZZVy1Dc25DOGVkYXNCWm1BIn19");
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", "AX1rbmdVxz_QGAL9-llnUdzCm4LZBNYY85R4RTgE6q3VT2-s7j9r8ZQpCXgXDtX9BiacGU6sPPk9Rfva");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOTIxMTFiYjk3NDg1OWFhMDBkNWIyYThhMmUxNzQ0YzkzY2NlZGNhNWY4OThhZDMwYTJhMjFmY2RjOTRjM2Q1OHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDhUMDE6MDM6NDQuODg5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU13WWNUanZmOGF0eXhNTVN0N0o1R3NhM2dwNzBmV1NIdGFWMzRTNW5WeXhPWUNuOU5DUGtmZzVOSFE0ZGhqTmVzNnFHbFNUU0I5T3ZZVy1Dc25DOGVkYXNCWm1BIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6481311c885b1', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6481311c885b1', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6481311c885b1', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6481311c885b1', 'paypal', 'buynow', 'rect', 'gold');
});
}