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