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/9kihkr6hzome/plugin/49/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATMyStZEKclh4Lv3QSnvur_ab4neDm7iBEThLxD4HyYUAbEqeJ3t4hOD9qPV0LG2BtyHU3aBsBYMDWYY");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYTlhYTg2ZDE2NGJhYjJlZDc0OWI5OGIxNjNkODg4ZDExNDI2YjE5OGZlMDRjY2UxZTNjNDRiNGMyNTJhZTk4MXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjVUMjE6MDU6MDguODU3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94UVBVOXBwb1VRb09ZcVVFMjNrM2daNF9uTDIycTloSjdWRUtMeTZrby1GYkQ1RHpmVzdXSWh3bVo5MjROV0VuWXlpTVdFQnpFOXI5d3JuVG1qZHZ2eUxaWjZ3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "ATMyStZEKclh4Lv3QSnvur_ab4neDm7iBEThLxD4HyYUAbEqeJ3t4hOD9qPV0LG2BtyHU3aBsBYMDWYY");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYTlhYTg2ZDE2NGJhYjJlZDc0OWI5OGIxNjNkODg4ZDExNDI2YjE5OGZlMDRjY2UxZTNjNDRiNGMyNTJhZTk4MXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjVUMjE6MDU6MDguODU3WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU94UVBVOXBwb1VRb09ZcVVFMjNrM2daNF9uTDIycTloSjdWRUtMeTZrby1GYkQ1RHpmVzdXSWh3bVo5MjROV0VuWXlpTVdFQnpFOXI5d3JuVG1qZHZ2eUxaWjZ3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('646fd818bea4f', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('646fd818bea4f', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('646fd818bea4f', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('646fd818bea4f', 'paypal', 'buynow', 'rect', 'gold');
});
}