if(!document.getElementById('paypal-smart-payment-script'))
{
var script = document.createElement("script");
script.type = "module";
script.id = "paypal-smart-payment-script";
script.src = "https://cdn03.plentymarkets.com/q1df4za9vysq/plugin/1/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AVw6DbJ7o3kNIVBSTPQb2ed7v4IMksmH3OoQS-B5gYmAz_0dkitz_J-TCxYdrXzI4_2aTTVIsPeDfCKX");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiODc2MjIxOTBjMGYxNzA3OWNmMWFiODc4OTc0ZWM4ZDRmMTgwYmU1NDJkZDBjNmRhZTFhNjM0NzVhM2VjNzI4N3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMTAtMDVUMDg6MDg6MDUuMzQ2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU9WbE5wNnRya2JSYjJBVGRjR2lqelZNeDJXTmZ0TjFjeDE1UFhmWHlZSkNzbFVaYkQ1LWpfTnlOZk0yR19SaUJJV0FhbUNsU3BQcjN4dVYtdnNPcWRjNFhac213In19");
script.setAttribute("data-append-trailing-slash", "1");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6700f3e4e19c7', 'paypal', 'buynow', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6700f3e4e19c7', 'paypal', 'buynow', 'rect', 'blue');
});
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6700f3e4e19c7', 'paylater', 'paypal', 'rect', 'blue');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6700f3e4e19c7', 'paylater', 'paypal', 'rect', 'blue');
});
}