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/m1x9nqiuzy5l/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "Ac81FsHN5_ZcmYl8McbmfyD-8HQR9cQskI4t5LfHpX9eibZJDjPyzRhftDCuTNMf9n-fSHJ7vTdlzZSG");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZGYzOWIyMGFiNDMwYWZkMTA0ZmU1ODRmMjJkY2ZkOTEzODkyN2RmYWRjMWI0MjcwZmU5NTdkZTU5MDExN2NhYnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjItMDUtMTdUMDU6MzA6MTYuMjEyWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1rMTB5dnNzRGE2dG1xUURuMTN0UGV0X2xLZUt2ZlZVb2pLa3B0SEtwNzFtZHE2dE53b3Zpd0Y4SFBvQmVRVklmcjAwNWtrZS01WmJ4X0ZCLTlZRm5YaVhRYWFnIn19");
script.setAttribute("data-append-trailing-slash", "1");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('628332e7cf7b4', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('628332e7cf7b4', 'paypal', 'buynow', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('628332e7cf7b4', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('628332e7cf7b4', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('628332e7cf7b4', 'card', 'buynow', 'rect', 'black');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('628332e7cf7b4', 'card', 'buynow', 'rect', 'black');
});
}