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/mfa1qocjwyob/plugin/4/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZG4aP1W0lp4Sl7eP-rMcO1T4YllPlSoVTlEi7vxvyemOQdRKnepzxmZsYjbTqAYsTpxhrZ4BT3hS1V1");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMmE0ODRiZGNlODVlN2Q1N2I0NTExN2EzYjg2NTFmM2VlMDE2Mzc5ODFkZTM3ODZhNTQ1YmQwYzBjNTY5Y2U0OHxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDUtMjdUMjE6MTQ6MDAuNzYxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQVBFQW1CUGtsYW1LS2Q1dk1lVGFUUDh2RVU1Und6ZW9YTFc1dmhuY2w1UFViOVdvTU9RM3dudW93T1ZMTWpFTklRbm5YaVhYTTI1MWMwRVluUUN0QlhmTDlDR3FRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('647272985aed9', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('647272985aed9', 'paypal', 'buynow', 'rect', 'gold');
});
}