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/ztdga291c2hq/plugin/2/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AdOJVvgPHr0cwYB7OVhbU9LOdebZBJ5tkX6EW2P8cpWnl0OLWww-fYXkgSxlU3NaOeCEeg57hLLME8Gy");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNThjM2RjZGFmNWI0MjY5MTdjNGFlNGQ5ZWY3ODI5ZWMzMTZhNmY3NjBiZmY3OTI4NWM0YjRiZmEyOGEzMDk2ZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTEtMTBUMDg6NDg6MjcuNjgxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBCLWFnNGxGdTNNWGZ4bzA3UFoyWjl4T1JUQWRhNUJxQlFOUzcwNmRyN1Q0RW1adkt1YWxBLVRobm5lMFhwNE5BSzAxQ1lnYWs5ZTB1TDgtRi00a0xjaHpGa0J3In19");
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", "AdOJVvgPHr0cwYB7OVhbU9LOdebZBJ5tkX6EW2P8cpWnl0OLWww-fYXkgSxlU3NaOeCEeg57hLLME8Gy");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiNThjM2RjZGFmNWI0MjY5MTdjNGFlNGQ5ZWY3ODI5ZWMzMTZhNmY3NjBiZmY3OTI4NWM0YjRiZmEyOGEzMDk2ZHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTEtMTBUMDg6NDg6MjcuNjgxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBCLWFnNGxGdTNNWGZ4bzA3UFoyWjl4T1JUQWRhNUJxQlFOUzcwNmRyN1Q0RW1adkt1YWxBLVRobm5lMFhwNE5BSzAxQ1lnYWs5ZTB1TDgtRi00a0xjaHpGa0J3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('673073c841cf8', 'paypal', 'buynow', 'rect', 'blue');
});
} else {
renderPayPalButtons('673073c841cf8', 'paypal', 'buynow', 'rect', 'blue');
}
oder Express Checkout nutzen