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/yhqemutogv6o/plugin/1/paypal/js/smartPaymentScript.min.js";
script.setAttribute("data-client-id", "AeYiuVvfYqgZdvKLo3txsOyD7jWpTZYHh9VQ3t2DuaGDs2ccp6CLtjqI54g7kF6_8snAmu9ff8TNusZj");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMGNmMWQ4NjkxNDFiN2U1MWZlMWVkODk5MWM2MTc4YzdkOTc1N2QzN2E0OWU3NDQzNjIxNzdiYjBlNGQxY2UzNnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjRUMDc6MDY6NDIuNTk2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU14cFI2TGk1OWVSX0ROQmpCTVE2c2RjYk5vcUlmY2FZeEdtcTk0Wmw3N1lKV0pLV1JhMVg4cm1jU210WC1OV0Z0Q0ZjbU1PQXhweVdhMDROLXJpQWUxbmpUUmlRIn19");
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", "AeYiuVvfYqgZdvKLo3txsOyD7jWpTZYHh9VQ3t2DuaGDs2ccp6CLtjqI54g7kF6_8snAmu9ff8TNusZj");
script.setAttribute("data-currency", "PLN");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiMGNmMWQ4NjkxNDFiN2U1MWZlMWVkODk5MWM2MTc4YzdkOTc1N2QzN2E0OWU3NDQzNjIxNzdiYjBlNGQxY2UzNnxtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjQtMDQtMjRUMDc6MDY6NDIuNTk2WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU14cFI2TGk1OWVSX0ROQmpCTVE2c2RjYk5vcUlmY2FZeEdtcTk0Wmw3N1lKV0pLV1JhMVg4cm1jU210WC1OV0Z0Q0ZjbU1PQXhweVdhMDROLXJpQWUxbmpUUmlRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "de_DE");
}
if (typeof paypal_plenty_sdk === 'undefined' || typeof renderPayPalButtons !== 'function') {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('6628babd4d24b', 'paypal', 'buynow', 'rect', 'gold');
});
} else {
renderPayPalButtons('6628babd4d24b', 'paypal', 'buynow', 'rect', 'gold');
}