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.plentyone.com/m16m8icxiam3/plugin/37/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AQ1r0BdlRUcog1igNZtM8rKob8hXhUnAzcZ4T2GNe_UQ1y6gWR7fKaqDzBAbzjG6IZZjzhRCSvmqIQ-x");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjU2N2FlZDg1MmU2NjQyNDI4ZDhlYzMxYjIxMjVmYjRiMTIxOGEzYWU4NzJjZjU0YmZkNDM0YmRhNTBjZWQwMHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjYtMDctMjhUMDk6NTQ6MzQuNjQ5NDI4MjM2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU81ZVdCS2llcnRTRGdmNDZXdDhGZlB2RFpSWTlWYmtDVDFhNzJheVRTYXBTaW5rZ1dMUDJnb3E1eW9lU3JjT2FpTXVzOVg4NndrekU5RTFqNHo2LTltVnVBb2F3In19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6a688203814d6', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6a688203814d6', 'paypal', 'buynow', 'rect', 'gold');
});
}