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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGRiZTZkOTAxZDdjNGZmNzI1MDUyMGQ1YTkwNzdlY2FmMWUxZDliODRiMWIyMGM3NGUzNzI5MWQ2ODVkMGFhZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTItMDZUMTQ6MTM6MzIuMDY1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU50NzNVT3BFNi1JNXZ6UFZIa0NrX3VudWNjQ0NKeXQ1eFA5WndrT3JMMXo3NU1fUlM5OElJREd4MnJoWU5LMV94bW9YSmJ1ZmpuZzVXQ3g0bFZrSzVfOTAzWXNnIn19");
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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGRiZTZkOTAxZDdjNGZmNzI1MDUyMGQ1YTkwNzdlY2FmMWUxZDliODRiMWIyMGM3NGUzNzI5MWQ2ODVkMGFhZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTItMDZUMTQ6MTM6MzIuMDY1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU50NzNVT3BFNi1JNXZ6UFZIa0NrX3VudWNjQ0NKeXQ1eFA5WndrT3JMMXo3NU1fUlM5OElJREd4MnJoWU5LMV94bW9YSmJ1ZmpuZzVXQ3g0bFZrSzVfOTAzWXNnIn19");
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('675307027d33b', 'paypal', 'buynow', 'rect', 'blue');
});
} else {
renderPayPalButtons('675307027d33b', 'paypal', 'buynow', 'rect', 'blue');
}
oder Express Checkout nutzen