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/zxfpz5646o6q/plugin/2/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AYQ6KeRWYKsMv2s0eh_1xu6OTpCLt_aNT2um3JjIaDA_Qr-uVO_JO-whw_UyVpL2FF9K_E91JsKJF7J6");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOWMyY2E4MTllMWUzZWNkYmJlZGRhODk0MGNkMzFlZWY5MjFiZjVkN2QwZjQxMTM3MTI4MGZmNTQzNmY5YzUxNXxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjlUMDU6NTc6MTQuODQxWiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU0tWHdGTmtaa2dfRUJ2ZklvVUVmcENudVFtMWtLSWdyVUtuQkY5Q3dOR0pZRlNYV092TkpuOVI2eWhfS01RODZiUUVMMFBHb3A0NWRtdlRoQVktZWNFU2hOTnVBIn19");
script.setAttribute("data-append-trailing-slash", "true");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6423d5d99f4ff', 'paylater', 'paypal', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6423d5d99f4ff', 'paylater', 'paypal', 'rect', 'gold');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6423d5d99f4ff', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6423d5d99f4ff', 'paypal', 'buynow', 'rect', 'gold');
});
}