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/bmvuwg41eqyj/plugin/5/paypal/js/smartPaymentScript.js";
script.setAttribute("data-client-id", "AZBiYtWftySqmbN9TwKkrbAZYB7CBHtsoM6MIKKQUSfK7MO4PrSZsfQ4n2xqa9vWLQzC1UDBFf-G7Ft6");
script.setAttribute("data-currency", "EUR");
script.setAttribute("data-client-token", "eyJicmFpbnRyZWUiOnsiYXV0aG9yaXphdGlvbkZpbmdlcnByaW50IjoiOGY0MmZiMThlZTc5MWJlM2Q4NTZhNDU3MWI2YmFmMGUyZjEzYTJkYjg3ZDUwMGNiYzQ4ODI1MzkxZWE3MzQ1M3xtZXJjaGFudF9pZD1yd3dua3FnMnhnNTZobTJuJnB1YmxpY19rZXk9ajJmYzJqcHhkZzZ2cDg0ZiZjcmVhdGVkX2F0PTIwMjMtMDYtMDdUMDU6MDU6MDEuMDg1WiIsInZlcnNpb24iOiIzLXBheXBhbCJ9LCJwYXlwYWwiOnsiaWRUb2tlbiI6bnVsbCwiYWNjZXNzVG9rZW4iOiJBMjFBQU4zelpYaGtzQXFfWjVIclRiMDRILWs2NkhVNmtsNWFaRFlHZUJWcmpON1lHMmlwNlZFU05hN2ROYVdUTmxUakVkZjh1MURsNkQ0TkZXTXlsZHk5bkVnV3Yzb0hRIn19");
script.setAttribute("data-append-trailing-slash", "");
script.setAttribute("data-locale", "pl_PL");
document.body.appendChild(script);
}
if(typeof renderPayPalButtons === 'function') {
renderPayPalButtons('648019441f046', 'paypal', 'buynow', 'rect', 'white');
} else {
document.addEventListener('payPalScriptInitialized', () => {
renderPayPalButtons('648019441f046', 'paypal', 'buynow', 'rect', 'white');
});
}