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/agj6azwzjkcd/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ARKgZAgeMQSZP0WfKIGbX1zmrdhMWe9z1Dck-2SGV1Gt2cr9XaQoHNixZD85ya8dxOZ6HuAIBe9IoxE3");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDRhNGFhM2M2MGY1ZDJjZGIwMzg3YjZlNTg3Nzk2Y2Y3MWZkMzY0MThjMTc3NDhjYzllZjI2OWI3Nzg2YWE0NnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDUtMjBUMDA6NDg6MTUuMzY4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9vbWFObm5Na1JSbFg1WFV3bkRsX1JQM0VrLXVyUU9QTC1kSEpRUmxBSG5iOHNWUl9KMF85MGl0UUVGb1k0LUV4N0Vfc1JPQTN4X0xuNkFxa210cFVYVkN1XzZRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6286e54ef15e5', 'paypal', 'paypal', 'rect', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6286e54ef15e5', 'paypal', 'paypal', 'rect', 'black');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6286e54ef15e5', 'paylater', 'paypal', 'rect', 'silver');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6286e54ef15e5', 'paylater', 'paypal', 'rect', 'silver');
});
}