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