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/qpod3xbz504k/plugin/15/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AU6dbeamHG3ZSkEjdiZSRri2EEfL6Ty6IFuGGU7R6gygd4gjM6HZfeIPF9wEXMFzDyB6T4Qgo8G5jvjh");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjY0MTU4OGRlNGRiNzJmMzk3NTZhNTk1NzExNjViMGQ0NGUxZTliMGYyYmY1OTRmOWFhZWU0MTUwZmZiM2JiOHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDNUMDQ6NDA6MzYuMjI5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5LdklZb3ZLYUcweTVKVEszTkxNNFpzUzg0TTZMcmdFVW5XelNBdVREN1p1N204X2xuLWdmcXctbHl6VjVaRkduOV9hNUdDU1hSZ2g3dlktenZ6ZVJQWE9XV1FRIn19");
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", "AU6dbeamHG3ZSkEjdiZSRri2EEfL6Ty6IFuGGU7R6gygd4gjM6HZfeIPF9wEXMFzDyB6T4Qgo8G5jvjh");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZjY0MTU4OGRlNGRiNzJmMzk3NTZhNTk1NzExNjViMGQ0NGUxZTliMGYyYmY1OTRmOWFhZWU0MTUwZmZiM2JiOHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDNUMDQ6NDA6MzYuMjI5WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5LdklZb3ZLYUcweTVKVEszTkxNNFpzUzg0TTZMcmdFVW5XelNBdVREN1p1N204X2xuLWdmcXctbHl6VjVaRkduOV9hNUdDU1hSZ2g3dlktenZ6ZVJQWE9XV1FRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647acd4d3f0e4', 'card', 'buynow', 'rect', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647acd4d3f0e4', 'card', 'buynow', 'rect', 'black');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647acd4d3f0e4', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647acd4d3f0e4', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647acd4d3f0e4', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647acd4d3f0e4', 'paypal', 'buynow', 'rect', 'gold');
});
}