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