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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOWRjZjlkODk0NTkyNjZkNmU3ZDA2ZmUxNGMwNDg5NWJkYTllODc5MmM3MWY0MTA0NDFhODY0NzZhMGUyNzM5OXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMzFUMTA6MTU6MzkuMDc4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU43Qy1paHJ1RFFvNUZqV2pBMDkySmF4amZBSkJaOG8yU3VadGRpMlJud3Y2Wm1UT1E2b1dON1RadHNnQzNmRFU3alR3WGZjbVdBRVI5VElPdjBNRmdRZVRTX3RBIn19");
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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOWRjZjlkODk0NTkyNjZkNmU3ZDA2ZmUxNGMwNDg5NWJkYTllODc5MmM3MWY0MTA0NDFhODY0NzZhMGUyNzM5OXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMzFUMTA6MTU6MzkuMDc4WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU43Qy1paHJ1RFFvNUZqV2pBMDkySmF4amZBSkJaOG8yU3VadGRpMlJud3Y2Wm1UT1E2b1dON1RadHNnQzNmRFU3alR3WGZjbVdBRVI5VElPdjBNRmdRZVRTX3RBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64771fec4536c', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64771fec4536c', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64771fec4536c', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64771fec4536c', 'paypal', 'buynow', 'rect', 'gold');
});
}