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/2j0d78tmpk5u/plugin/5/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AUC15fjkpnldPnHslxnLn2wuMBXYH4zw7VDrUmbv4rQNP1DhLJPRKdoJpvPbvvjEmY4kVdSSOjwYzKZC");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMDFjNDhiNTU3YWIxMTVjYzk3Yzc3YjM0ZWYyZTQ5MTZhNGYyZTQ2YTg0MDQ4M2IxMWU3NDIxNmQyZjJhZmM0N3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjdUMDU6MjQ6MTguNjc5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU53UG9BenRSS0JxaW03V2hxUkdmRUM0QmV0Q2d4VDN0dU1RNWNNQ2d1cGRzRFg4UlM1cHlKWlhzbndTaHpGb0NMRHRjZG1mMk5XMy15VkR3amRTQXVPd2JSQ01RIn19");
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", "AUC15fjkpnldPnHslxnLn2wuMBXYH4zw7VDrUmbv4rQNP1DhLJPRKdoJpvPbvvjEmY4kVdSSOjwYzKZC");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMDFjNDhiNTU3YWIxMTVjYzk3Yzc3YjM0ZWYyZTQ5MTZhNGYyZTQ2YTg0MDQ4M2IxMWU3NDIxNmQyZjJhZmM0N3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDctMjdUMDU6MjQ6MTguNjc5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU53UG9BenRSS0JxaW03V2hxUkdmRUM0QmV0Q2d4VDN0dU1RNWNNQ2d1cGRzRFg4UlM1cHlKWlhzbndTaHpGb0NMRHRjZG1mMk5XMy15VkR3amRTQXVPd2JSQ01RIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66a4901a543b7', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a4901a543b7', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('66a4901a543b7', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('66a4901a543b7', 'paypal', 'buynow', 'rect', 'gold');
});
}