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/mhvzwmmn0n2b/plugin/49/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AW1MxMmRiPGfQ1nWIz0O7BGHjoMcRoUb8IOidTAqhi7dkPuodrD0ONxkoBhe5HVfgSJNN0NaOMO1VeY-");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiYjUzM2VlYWMwYmUyZWM1MDAyNmI5ZmU4MjY0OWQwMzBkZjRmODliNzAzMzdiY2UzN2NkNmNmNjM0OGI4Njc3N3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDItMDhUMDk6MzU6MjMuNzUxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU5UczRfOXV2MmtzU21uOGVVZmNYT1V3TEVIdUJKUmFmTkhVWXlHa3hPNjduYUR4SHhwemh3TlRfd3pxTGNEVUV6UC1zRXdKUm00X0l3OXJ6UklBcnlxMDJHUGRnIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('63e3734d0ca7e', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('63e3734d0ca7e', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('63e3734d0ca7e', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('63e3734d0ca7e', 'paypal', 'buynow', 'rect', 'gold');
});
}