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/s8ix3rhxk064/plugin/25/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "ATpe9qgXm5iuVKpCWZp_1afL4_SCedg8AAdsBmzJKBCqa3Ljy1xg8H9AEIEXdc8rNJdmb7zHLptDi9Rs");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDhhNDA5N2MxMGU5NzNmNjViYjU5MzIxZThkMmY1MDUyMjE2NDQ5Yzc5MjljOTk1NTgwZjQzYTM3OTE5ZmM3YnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjhUMTM6MDQ6MTguNzI1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1pbEtwd3F1aHBtVXRfVERvSGU4a2hMbEtBUGExUjlGblluU1ExX1BVNHlJeUttTV9CZ3FYQklZeThPWVJ4ZjBFdC1XbXhuU0l0cDUxOGthMVlxQ25wSjd6RmlRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
document.body.appendChild(script);
} else {
var script = document.getElementById('paypal-smart-payment-script');
script.setAttribute("data-client-id", "ATpe9qgXm5iuVKpCWZp_1afL4_SCedg8AAdsBmzJKBCqa3Ljy1xg8H9AEIEXdc8rNJdmb7zHLptDi9Rs");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiZDhhNDA5N2MxMGU5NzNmNjViYjU5MzIxZThkMmY1MDUyMjE2NDQ5Yzc5MjljOTk1NTgwZjQzYTM3OTE5ZmM3YnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDMtMjhUMTM6MDQ6MTguNzI1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU1pbEtwd3F1aHBtVXRfVERvSGU4a2hMbEtBUGExUjlGblluU1ExX1BVNHlJeUttTV9CZ3FYQklZeThPWVJ4ZjBFdC1XbXhuU0l0cDUxOGthMVlxQ25wSjd6RmlRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('6422e7004f0a6', 'paypal', 'buynow', 'rect', 'gold');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6422e7004f0a6', 'paypal', 'buynow', 'rect', 'gold');
});
}