Kasse
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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGRmZTFhYmVjYTJiMTRhY2Q0ZWNmZGQ0NjQyNDk4ZGRhZWMyYzJlNzg1YTFiZjE5MWQyMjhiMTEyZTFlMGQxOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDgtMjlUMjE6MTg6MTguNDMyMjg0ODQ1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5tZU5DNnV3amF5MTFGd19VS0tzTi1pa3h3Zzdrb0N0dnZqRjZRTk1LLVVYZVBEQUVDc0Foc1lneFRtN2ZVbElROVZYN01FTzhoc2NoeUxaWHBfdXAtMjhBeVhBIn19");
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", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGRmZTFhYmVjYTJiMTRhY2Q0ZWNmZGQ0NjQyNDk4ZGRhZWMyYzJlNzg1YTFiZjE5MWQyMjhiMTEyZTFlMGQxOXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjUtMDgtMjlUMjE6MTg6MTguNDMyMjg0ODQ1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5tZU5DNnV3amF5MTFGd19VS0tzTi1pa3h3Zzdrb0N0dnZqRjZRTk1LLVVYZVBEQUVDc0Foc1lneFRtN2ZVbElROVZYN01FTzhoc2NoeUxaWHBfdXAtMjhBeVhBIn19");
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('68b21ec19b902', 'paypal', 'buynow', 'rect', 'blue');
});
} else {
renderPayPalButtons('68b21ec19b902', 'paypal', 'buynow', 'rect', 'blue');
}
oder Express Checkout nutzen