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/50j1t84he5zu/plugin/12/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "Ad6yHc1ypNFQxDuK71kmbpne8LmMuxR29UcjLB8ob90ssoEEj7Op1H0u69Z_FfB6hUr96MfotVXtIHnZ");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMGFhYzkxOGQ0MTdjODIzMDI0MzlkMGUyYTE0ZDQzNDI0MDc4NjFlOTIwN2M5MjNlOTJmM2U3ODliZjZmM2I0ZXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMTVUMDY6MjU6MjUuMzUxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU8wU2F1bm9XMnF1Y28zLU1ZQXgtLU05eE1weUh6S0ZCM3VJQkc2cGdQWUtGbk9iS2NQR21rOVFwNVBSWTlhYnRDbU9fc1lSemJTcEt3S0c1YmwzNlFHZnVFWEV3In19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('64116fa0d5f30', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('64116fa0d5f30', 'paylater', 'paypal', 'rect', 'gold');
});
}